diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index f61c6239..639bc4a7 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -385,7 +385,9 @@ public class MobileFSM { if (!aiAgent.canSee(loadedPlayer)) continue; // No aggro for this race type - if (aiAgent.notEnemy.contains(loadedPlayer.getRace().getRaceType())) + if (aiAgent.notEnemy.contains(loadedPlayer.getRace().getRaceType().getMonsterType())) + continue; + if(!aiAgent.enemy.contains(loadedPlayer.getRace().getRaceType().getMonsterType())) continue; if (MovementUtilities.inRangeToAggro(aiAgent, loadedPlayer)) { aiAgent.setCombatTarget(loadedPlayer);