mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-14 02:32:25 +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
|
//Dook- swarms and wards
|
||||||
|
|
||||||
|
// do nothing if it's a corpse
|
||||||
|
if (targ != nullptr && targ->IsCorpse())
|
||||||
|
return;
|
||||||
|
|
||||||
PetRecord record;
|
PetRecord record;
|
||||||
if(!database.GetPetEntry(spells[spell_id].teleport_zone, &record))
|
if(!database.GetPetEntry(spells[spell_id].teleport_zone, &record))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user