[10735] Fixed spell 51420 work by use recently added protector pets as expected.

Thanks to NoFantasy for problem research (and prev. new pet type adding case research aslo) ;)
This commit is contained in:
VladimirMangos 2010-11-18 22:19:51 +03:00
parent 98d19f4d07
commit 876458c6e4
4 changed files with 16 additions and 11 deletions

View file

@ -1541,13 +1541,8 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;
// Not expecting any MINI_PET here, the ones used for related quests are
// fighting "companions" (effMiscValueB 387). Needs to be corrected.
Pet* pPet = ((Player*)m_caster)->GetMiniPet();
// only spell related protector pets exist currently
Pet* pPet = m_caster->GetProtectorPet();
if (!pPet)
return;