aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <none@none>2010-08-03 11:31:23 +0200
committerShauren <none@none>2010-08-03 11:31:23 +0200
commitee147d6402b6f1549c0d2e23b6667d216bb9efa8 (patch)
treeca1ff83831eb3ab8bace083fc49b03678163dad4 /src
parent109bcb0927d853c9a7340ac55f84003d12ff4762 (diff)
Compile fix
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp3
1 files changed, 1 insertions, 2 deletions
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);
}