diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index 354cbcbd4d6..2e6729e591f 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -469,20 +469,20 @@ class spell_mage_blizzard : public SpellScriptLoader public: spell_mage_blizzard() : SpellScriptLoader("spell_mage_blizzard") { } - bool Validate(SpellInfo const* /*spellEntry*/) - { - if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_CHILLED_R1)) - return false; - if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_CHILLED_R2)) - return false; - return true; - } - class spell_mage_blizzard_SpellScript : public SpellScript { PrepareSpellScript(spell_mage_blizzard_SpellScript); - void AddChillEffect() + bool Validate(SpellInfo const* /*spellEntry*/) + { + if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_CHILLED_R1)) + return false; + if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_CHILLED_R2)) + return false; + return true; + } + + void AddChillEffect(SpellEffIndex /*effIndex*/) { Unit* caster = GetCaster(); if (Unit* unitTarget = GetHitUnit()) @@ -517,7 +517,7 @@ class spell_mage_frostbolt : public SpellScriptLoader { PrepareSpellScript(spell_mage_frostbolt_SpellScript); - void RecalculateDamage() + void RecalculateDamage(SpellEffIndex /*effIndex*/) { if (GetHitUnit() && GetHitUnit()->HasAuraState(AURA_STATE_FROZEN, GetSpellInfo(), GetCaster())) { |