Improvements to the pet type (5) code.

This commit is contained in:
KayenEQ
2015-02-03 07:59:29 -05:00
parent 356316db84
commit 33767aeb91
5 changed files with 15 additions and 6 deletions
+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;
}
}
}