diff --git a/src/engine/devcmd/cmds/InfoCmd.java b/src/engine/devcmd/cmds/InfoCmd.java index 791a01e2..edd10365 100644 --- a/src/engine/devcmd/cmds/InfoCmd.java +++ b/src/engine/devcmd/cmds/InfoCmd.java @@ -342,7 +342,8 @@ public class InfoCmd extends AbstractDevCmd { output += newline; output += "isMoving : " + targetPC.isMoving(); output += newline; - output += "Zerg Multiplier : " + targetPC.ZergMultiplier; + output += "Zerg Multiplier : " + targetPC.ZergMultiplier+ newline; + output += "Hidden : " + targetPC.getHidden(); break; case NPC: diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index d1a48d20..452e1809 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -994,6 +994,11 @@ public class MobAI { try { + if(mob.combatTarget != null && mob.combatTarget.getObjectType().equals(Enum.GameObjectType.PlayerCharacter) && !mob.canSee((PlayerCharacter)mob.combatTarget)){ + mob.setCombatTarget(null); + return; + } + float rangeSquared = mob.getRange() * mob.getRange(); float distanceSquared = mob.getLoc().distanceSquared2D(mob.getCombatTarget().getLoc());