diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-04-09 10:58:20 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-04-09 10:58:20 +0200 |
commit | bfc73920c72c1a5ee60ea5cddf9197dd80d5a3e6 (patch) | |
tree | 5e762dfd85efdacd8d6e92b73b49584cee42dfa7 /src | |
parent | fe5a5de0f771360e7902a9434b1aaf713e79af17 (diff) |
Scripts/Spells: Corrected Riptide script, preparing variable should be done in Load hook, not Register
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 5b5a48f33af..1a0f4576fea 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -552,6 +552,13 @@ class spell_sha_chain_heal : public SpellScriptLoader { PrepareSpellScript(spell_sha_chain_heal_SpellScript); + bool Load() + { + firstHeal = true; + riptide = false; + return true; + } + void HandleHeal(SpellEffIndex /*effIndex*/) { if (firstHeal) @@ -573,13 +580,10 @@ class spell_sha_chain_heal : public SpellScriptLoader void Register() { OnEffectHitTarget += SpellEffectFn(spell_sha_chain_heal_SpellScript::HandleHeal, EFFECT_0, SPELL_EFFECT_HEAL); - firstHeal = true; - riptide = false; } - + bool firstHeal; bool riptide; - }; SpellScript* GetSpellScript() const |