aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;