Improvements to the pet type (5) code.

This commit is contained in:
KayenEQ committed 2015-02-03 07:59:29 -05:00
1 parent 356316db84
commit 33767aeb91
5 files changed
+15 -6

No files matched your search

+10
View File
@@ -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;
}
}
}