From a86f818fe18e89629e7bcdbd95c4c88b87ad3d2f Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Sat, 20 Jul 2013 18:22:33 +0200 Subject: Core/Spells: Update/Convert warrior state "Victory Rush" for 4.3.4 --- src/server/scripts/Spells/spell_warrior.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/server/scripts/Spells') diff --git a/src/server/scripts/Spells/spell_warrior.cpp b/src/server/scripts/Spells/spell_warrior.cpp index ef46159e3af..9c5b7af76d7 100644 --- a/src/server/scripts/Spells/spell_warrior.cpp +++ b/src/server/scripts/Spells/spell_warrior.cpp @@ -769,6 +769,34 @@ class spell_warr_sword_and_board : public SpellScriptLoader } }; +// 32216 - Victorious +class spell_warr_victorious : public SpellScriptLoader +{ + public: + spell_warr_victorious() : SpellScriptLoader("spell_warr_victorious") { } + + class spell_warr_victorious_AuraScript : public AuraScript + { + PrepareAuraScript(spell_warr_victorious_AuraScript); + + void HandleEffectProc(AuraEffect const* /*aurEff*/, ProcEventInfo& /*eventInfo*/) + { + PreventDefaultAction(); + GetTarget()->RemoveAura(GetId()); + } + + void Register() OVERRIDE + { + OnEffectProc += AuraEffectProcFn(spell_warr_victorious_AuraScript::HandleEffectProc, EFFECT_0, SPELL_AURA_DUMMY); + } + }; + + AuraScript* GetAuraScript() const OVERRIDE + { + return new spell_warr_victorious_AuraScript(); + } +}; + // 50720 - Vigilance class spell_warr_vigilance : public SpellScriptLoader { @@ -914,6 +942,7 @@ void AddSC_warrior_spell_scripts() new spell_warr_slam(); new spell_warr_sweeping_strikes(); new spell_warr_sword_and_board(); + new spell_warr_victorious(); new spell_warr_vigilance(); new spell_warr_vigilance_trigger(); } -- cgit v1.2.3