mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
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:
4
sql/updates/world/4.3.4/2020_03_29_00_world.sql
Normal file
4
sql/updates/world/4.3.4/2020_03_29_00_world.sql
Normal 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');
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user