Scripts/VP: Howling Gale will no now correctly apply its aurastate to players uppon hit to prevent multiple knockbacks in quick succession

This commit is contained in:
Ovahlord
2020-03-29 01:07:13 +01:00
parent dfef83ee3e
commit 9eeb4cc6a7
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_vp_howling_gale_knockback';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(85159, 'spell_vp_howling_gale_knockback'),
(85085, 'spell_vp_howling_gale_knockback');

View File

@@ -726,6 +726,28 @@ class spell_vp_howling_gale : public AuraScript
}
};
// 85159, 85085 - Howling Gale
class spell_vp_howling_gale_knockback : public AuraScript
{
PrepareAuraScript(spell_vp_howling_gale_knockback);
void AfterApply(AuraEffect const* aurEff, AuraEffectHandleModes /*mode*/)
{
GetTarget()->ModifyAuraState(AURA_STATE_UNKNOWN22, true);
}
void AfterRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
GetTarget()->ModifyAuraState(AURA_STATE_UNKNOWN22, false);
}
void Register() override
{
OnEffectApply += AuraEffectApplyFn(spell_vp_howling_gale_knockback::AfterApply, EFFECT_1, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
AfterEffectRemove += AuraEffectRemoveFn(spell_vp_howling_gale_knockback::AfterRemove, EFFECT_1, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
}
};
// 84978, 84989, 85395, 85396, 85017 - Slipstream
class spell_slipstream : public SpellScript
{
@@ -917,6 +939,7 @@ void AddSC_vortex_pinnacle()
RegisterAuraScript(spell_lurk_ressurect);
RegisterSpellScript(spell_lurk_search_victim);
RegisterAuraScript(spell_vp_howling_gale);
RegisterAuraScript(spell_vp_howling_gale_knockback);
RegisterSpellScript(spell_slipstream);
RegisterSpellScript(spell_grounding_field);
RegisterSpellScript(spell_skyfall);