diff options
author | Shauren <shauren.trinity@gmail.com> | 2013-06-27 19:32:32 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2013-06-27 19:32:32 +0200 |
commit | 899f1fb7e401d66b2e7a6486856d3be09b81a0ed (patch) | |
tree | 6d79878ce20e46dd3ecf2ccc8b3916bd1100b3dc /src | |
parent | 50e7b93bbd66b1d26916bc4168ea4fe875fa2566 (diff) | |
parent | 4c78f3201c6b86ab06c288ae2db0680fcc6804b7 (diff) |
Merge branch '4.3.4' of github.com:TrinityCore/TrinityCore into 4.3.4
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 25c7d7a30c1..e036a476cbd 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -39,6 +39,7 @@ enum ShamanSpells SPELL_SHAMAN_EXHAUSTION = 57723, SPELL_SHAMAN_FIRE_NOVA_TRIGGERED_R1 = 8349, SPELL_SHAMAN_FLAME_SHOCK = 8050, + SPELL_SHAMAN_FOCUSED_INSIGHT = 77800, SPELL_SHAMAN_GLYPH_OF_EARTH_SHIELD = 63279, SPELL_SHAMAN_GLYPH_OF_HEALING_STREAM_TOTEM = 55456, SPELL_SHAMAN_GLYPH_OF_MANA_TIDE = 55441, @@ -486,6 +487,44 @@ class spell_sha_flame_shock : public SpellScriptLoader } }; +// 77794 - Focused Insight +class spell_sha_focused_insight : public SpellScriptLoader +{ + public: + spell_sha_focused_insight() : SpellScriptLoader("spell_sha_focused_insight") { } + + class spell_sha_focused_insight_AuraScript : public AuraScript + { + PrepareAuraScript(spell_sha_focused_insight_AuraScript); + + bool Validate(SpellInfo const* /*spellInfo*/) + { + if (!sSpellMgr->GetSpellInfo(SPELL_SHAMAN_FOCUSED_INSIGHT)) + return false; + return true; + } + + void HandleEffectProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/) + { + PreventDefaultAction(); + int32 basePoints0 = aurEff->GetAmount(); + int32 basePoints1 = aurEff->GetSpellInfo()->Effects[EFFECT_1].CalcValue(); + + GetTarget()->CastCustomSpell(GetTarget(), SPELL_SHAMAN_FOCUSED_INSIGHT, &basePoints0, &basePoints1, &basePoints1, true, NULL, aurEff); + } + + void Register() + { + OnEffectProc += AuraEffectProcFn(spell_sha_focused_insight_AuraScript::HandleEffectProc, EFFECT_0, SPELL_AURA_DUMMY); + } + }; + + AuraScript* GetAuraScript() const + { + return new spell_sha_focused_insight_AuraScript(); + } +}; + // 52041 - Healing Stream Totem /// Updated 4.3.4 class spell_sha_healing_stream_totem : public SpellScriptLoader @@ -884,6 +923,7 @@ void AddSC_shaman_spell_scripts() new spell_sha_feedback(); new spell_sha_fire_nova(); new spell_sha_flame_shock(); + new spell_sha_focused_insight(); new spell_sha_healing_stream_totem(); new spell_sha_heroism(); new spell_sha_lava_lash(); |