mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 12:47:07 +00:00
feat(Spell/Scripts): Move Spell gen remove impairing auras to spell scripts (#11104)
This commit is contained in:
committed by
GitHub
parent
cb5c045a24
commit
c93a84e821
@@ -3808,13 +3808,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
|
||||
m_caster->CastSpell(unitTarget, 22682, true);
|
||||
return;
|
||||
}
|
||||
case 20589: // Escape artist
|
||||
case 30918: // Improved Sprint
|
||||
{
|
||||
// Removes snares and roots.
|
||||
unitTarget->RemoveMovementImpairingAuras(true);
|
||||
break;
|
||||
}
|
||||
// Plant Warmaul Ogre Banner
|
||||
case 32307:
|
||||
if (Player* caster = m_caster->ToPlayer())
|
||||
|
||||
@@ -4389,6 +4389,23 @@ class spell_gen_arcane_charge : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 20589 - Escape artist
|
||||
// 30918 - Improved Sprint
|
||||
class spell_gen_remove_impairing_auras : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_remove_impairing_auras);
|
||||
|
||||
void HandleScriptEffect(SpellEffIndex /* effIndex */)
|
||||
{
|
||||
GetHitUnit()->RemoveMovementImpairingAuras(true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_remove_impairing_auras::HandleScriptEffect, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_generic_spell_scripts()
|
||||
{
|
||||
RegisterSpellScript(spell_silithyst);
|
||||
@@ -4522,4 +4539,5 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterSpellScript(spell_contagion_of_rot);
|
||||
RegisterSpellScript(spell_gen_holiday_buff_food);
|
||||
RegisterSpellScript(spell_gen_arcane_charge);
|
||||
RegisterSpellScript(spell_gen_remove_impairing_auras);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user