From df5d58f43da4e2aeb9ca215796fd7bd82ad60b6d Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Fri, 10 Mar 2017 13:00:22 -0500 Subject: [PATCH] Temp pets shouldn't spawn when they're targeting a corpse --- zone/aa.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zone/aa.cpp b/zone/aa.cpp index 0f0617393..3c6f11f6e 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -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)) {