fix(Scripts/SWP): Breath: Haste now removes impairing auras (#22192)

Kil'Jaeden encounter (SWP) Spell: breath: haste will now remove impairing auras.
This commit is contained in:
avarishd
2025-05-24 21:51:57 +03:00
committed by GitHub
parent c7b86bc664
commit 39f6974f7d

View File

@@ -1160,6 +1160,8 @@ class spell_kiljaeden_armageddon_missile : public SpellScript
} }
}; };
// 45856 - Breath: Haste
// 45860 - Breath: Revitalize
class spell_kiljaeden_dragon_breath : public SpellScript class spell_kiljaeden_dragon_breath : public SpellScript
{ {
PrepareSpellScript(spell_kiljaeden_dragon_breath); PrepareSpellScript(spell_kiljaeden_dragon_breath);
@@ -1169,9 +1171,16 @@ class spell_kiljaeden_dragon_breath : public SpellScript
targets.remove_if(Acore::UnitAuraCheck(true, SPELL_VENGEANCE_OF_THE_BLUE_FLIGHT)); targets.remove_if(Acore::UnitAuraCheck(true, SPELL_VENGEANCE_OF_THE_BLUE_FLIGHT));
} }
void HandleHit(SpellEffIndex /*effindex*/)
{
if (Unit* target = GetHitUnit())
target->RemoveMovementImpairingAuras(false);
}
void Register() override void Register() override
{ {
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_kiljaeden_dragon_breath::FilterTargets, EFFECT_ALL, TARGET_UNIT_CONE_ALLY); OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_kiljaeden_dragon_breath::FilterTargets, EFFECT_ALL, TARGET_UNIT_CONE_ALLY);
OnEffectHitTarget += SpellEffectFn(spell_kiljaeden_dragon_breath::HandleHit, EFFECT_ALL, SPELL_EFFECT_ANY);
} }
}; };