diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_evoker.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_evoker.cpp b/src/server/scripts/Spells/spell_evoker.cpp index 7eb055917db..ad52d985292 100644 --- a/src/server/scripts/Spells/spell_evoker.cpp +++ b/src/server/scripts/Spells/spell_evoker.cpp @@ -51,6 +51,7 @@ enum EvokerSpells SPELL_EVOKER_BLESSING_OF_THE_BRONZE_SHAMAN = 381756, SPELL_EVOKER_BLESSING_OF_THE_BRONZE_WARLOCK = 381757, SPELL_EVOKER_BLESSING_OF_THE_BRONZE_WARRIOR = 381758, + SPELL_EVOKER_BURNOUT = 375802, SPELL_EVOKER_CALL_OF_YSERA_TALENT = 373834, SPELL_EVOKER_CALL_OF_YSERA = 373835, SPELL_EVOKER_CAUSALITY = 375777, @@ -157,6 +158,31 @@ class spell_evo_blessing_of_the_bronze : public SpellScript } }; +// 375801 - Burnout +class spell_evo_burnout : public AuraScript +{ + bool Validate(SpellInfo const* /*spellInfo*/) override + { + return ValidateSpellInfo({ SPELL_EVOKER_BURNOUT }); + } + + static bool CheckProc(AuraEffect const* aurEff, ProcEventInfo const& /*eventInfo*/) + { + return roll_chance_i(aurEff->GetAmount()); + } + + static void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo const& eventInfo) + { + eventInfo.GetActor()->CastSpell(eventInfo.GetActor(), SPELL_EVOKER_BURNOUT, TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR); + } + + void Register() override + { + DoCheckEffectProc += AuraCheckEffectProcFn(spell_evo_burnout::CheckProc, EFFECT_0, SPELL_AURA_DUMMY); + OnEffectProc += AuraEffectProcFn(spell_evo_burnout::HandleProc, EFFECT_0, SPELL_AURA_DUMMY); + } +}; + // 373834 - Call of Ysera (attached to 361195 - Verdant Embrace (Green)) class spell_evo_call_of_ysera : public SpellScript { @@ -743,6 +769,7 @@ void AddSC_evoker_spell_scripts() { RegisterSpellScript(spell_evo_azure_strike); RegisterSpellScript(spell_evo_blessing_of_the_bronze); + RegisterSpellScript(spell_evo_burnout); RegisterSpellScript(spell_evo_call_of_ysera); RegisterSpellScript(spell_evo_causality_disintegrate); RegisterSpellScript(spell_evo_causality_pyre); |