From 60c2405cad47483a75fbec5c1fb237c819d5f9b5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 9 May 2023 21:11:51 -0500 Subject: [PATCH] mobs now use enemy/notenemy for aggro rules --- src/engine/ai/MobileFSM.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);