mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
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:
@@ -1160,6 +1160,8 @@ class spell_kiljaeden_armageddon_missile : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 45856 - Breath: Haste
|
||||
// 45860 - Breath: Revitalize
|
||||
class spell_kiljaeden_dragon_breath : public SpellScript
|
||||
{
|
||||
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));
|
||||
}
|
||||
|
||||
void HandleHit(SpellEffIndex /*effindex*/)
|
||||
{
|
||||
if (Unit* target = GetHitUnit())
|
||||
target->RemoveMovementImpairingAuras(false);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user