From ee147d6402b6f1549c0d2e23b6667d216bb9efa8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 3 Aug 2010 11:31:23 +0200 Subject: Compile fix --HG-- branch : trunk --- src/server/scripts/Spells/spell_hunter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index f5aa0d1f1d6..733274ebe51 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -137,10 +137,9 @@ class spell_hun_pet_heart_of_the_phoenix : public SpellScript void HandleScript(SpellEffIndex effIndex) { + Unit *caster = GetCaster(); if (caster->HasAura(HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF)) return; - Unit *caster = GetCaster(); - int32 bp0healPercent = 100; caster->CastCustomSpell(HUNTER_PET_HEART_OF_THE_PHOENIX_TRIGGERED, SPELLVALUE_BASE_POINT0, 100, caster, true); caster->CastSpell(caster, HUNTER_PET_HEART_OF_THE_PHOENIX_DEBUFF, true); } -- cgit v1.2.3