fix(Core/Unit): Respect Attribute ALLOW_ACTION_DURING_CHANNEL from triggered casts (#26880)

This commit is contained in:
Gultask
2026-08-01 20:14:22 -03:00
committed by GitHub
parent acdb1b0224
commit 4d64135830
2 changed files with 9 additions and 2 deletions
+5 -2
View File
@@ -4181,8 +4181,11 @@ void Unit::SetCurrentCastedSpell(Spell* pSpell)
}
case CURRENT_CHANNELED_SPELL:
{
// channel spells always break generic non-delayed and any channeled spells
InterruptSpell(CURRENT_GENERIC_SPELL, false);
// channel spells always break generic non-delayed and any channeled spells,
// unless the channel itself is allowed to run alongside other actions
if (!pSpell->GetSpellInfo()->IsActionAllowedChannel())
InterruptSpell(CURRENT_GENERIC_SPELL, false);
InterruptSpell(CURRENT_CHANNELED_SPELL, true, true, bySelf);
// it also does break autorepeat if not Auto Shot