forked from MagicBane/Server
mob drop combat targets no longer in game
This commit is contained in:
@@ -429,9 +429,9 @@ public class MobAI {
|
|||||||
mob.setCombatTarget(null);
|
mob.setCombatTarget(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(mob.getCombatTarget().getObjectTypeMask() == MBServerStatics.MASK_PLAYER){
|
if(mob.getCombatTarget().getObjectTypeMask() == MBServerStatics.MASK_PLAYER){
|
||||||
if(mob.playerAgroMap.containsKey(mob.getCombatTarget().getObjectUUID()) == false){
|
PlayerCharacter target = (PlayerCharacter)mob.combatTarget;
|
||||||
|
if(mob.playerAgroMap.containsKey(target.getObjectUUID()) == false){
|
||||||
mob.setCombatTarget(null);
|
mob.setCombatTarget(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -439,6 +439,10 @@ public class MobAI {
|
|||||||
mob.setCombatTarget(null);
|
mob.setCombatTarget(null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(target.getClientConnection() == null){
|
||||||
|
mob.setCombatTarget(null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if(mob.getTimestamps().containsKey("LOCATIONSYNC") == false){
|
//if(mob.getTimestamps().containsKey("LOCATIONSYNC") == false){
|
||||||
|
|||||||
Reference in New Issue
Block a user