mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 23:17:16 +00:00
Improvements to the pet type (5) code.
This commit is contained in:
1 parent
356316db84
commit
33767aeb91
5 files changed
+15
-6
No files matched your search
@@ -2419,4 +2419,14 @@ void NPC::DepopSwarmPets()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (IsPet() && GetPetType() == petTargetLock && GetPetTargetLockID()){
|
||||
|
||||
Mob *targMob = entity_list.GetMob(GetPetTargetLockID());
|
||||
|
||||
if(!targMob || (targMob && targMob->IsCorpse())){
|
||||
Kill();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user