Fix Master's call. Thanks Gyullo.

Fixes issue #1059.

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-03-14 13:46:15 +01:00
parent 6fdaf225f3
commit 8d51d23cc5

View File

@@ -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;