Temp pets shouldn't spawn when they're targeting a corpse

This commit is contained in:
Michael Cook (mackal) 2017-03-10 13:00:22 -05:00
parent 37d22e17a3
commit df5d58f43d

View File

@ -42,6 +42,10 @@ void Mob::TemporaryPets(uint16 spell_id, Mob *targ, const char *name_override, u
//Dook- swarms and wards
// do nothing if it's a corpse
if (targ != nullptr && targ->IsCorpse())
return;
PetRecord record;
if(!database.GetPetEntry(spells[spell_id].teleport_zone, &record))
{