mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-26 02:41:28 +00:00
Temp pets shouldn't spawn when they're targeting a corpse
This commit is contained in:
parent
37d22e17a3
commit
df5d58f43d
@ -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))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user