*Fix a bug that npc's pet has too high level.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-04-15 20:19:47 -05:00
parent 28f86fdcb0
commit 9bf4aaef2e

View File

@@ -3914,14 +3914,16 @@ void Spell::EffectSummonPet(uint32 i)
owner = m_originalCaster->GetCharmerOrOwnerPlayerOrPlayerItself();
}
uint32 petentry = m_spellInfo->EffectMiscValue[i];
if(!owner)
{
EffectSummonWild(i);
SummonPropertiesEntry const *properties = sSummonPropertiesStore.LookupEntry(67);
if(properties)
SummonGuardian(petentry, properties);
return;
}
uint32 petentry = m_spellInfo->EffectMiscValue[i];
Pet *OldSummon = owner->GetPet();
// if pet requested type already exist