aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-03-14 13:46:15 +0100
committerTrazom62 <none@none>2010-03-14 13:46:15 +0100
commit8d51d23cc5f1001b8c5c650d62ca200e596a4eb9 (patch)
tree517c861ae7754f1c73f3e4271c42f70251c568e6 /src
parent6fdaf225f3bb9ce84e74f40e56727ccfea729a38 (diff)
Fix Master's call. Thanks Gyullo.
Fixes issue #1059. --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 3253cd36f86..df687c3699b 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1830,9 +1830,10 @@ void Spell::EffectDummy(uint32 i)
if (m_caster->GetTypeId() != TYPEID_PLAYER || !unitTarget)
return;
- if (Pet *PlrPet = m_caster->ToPlayer()->GetPet())
- PlrPet->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(i), true);
- return;
+ if (Pet *pPet = m_caster->ToPlayer()->GetPet())
+ if (pPet->isAlive())
+ pPet->CastSpell(unitTarget, m_spellInfo->CalculateSimpleValue(i), true);
+ return;
}
}
break;