diff --git a/src/engine/mobileAI/Behaviours/StandardMob.java b/src/engine/mobileAI/Behaviours/StandardMob.java index 8349e946..6ab1167e 100644 --- a/src/engine/mobileAI/Behaviours/StandardMob.java +++ b/src/engine/mobileAI/Behaviours/StandardMob.java @@ -116,6 +116,9 @@ public class StandardMob { return; } + if(!mob.BehaviourType.isAgressive) + return; + if(mob.BehaviourType.equals(Enum.MobBehaviourType.HamletGuard)){ return; } @@ -180,6 +183,9 @@ public class StandardMob { public static void CheckForMovement(Mob mob){ + if(!mob.BehaviourType.canRoam) + return; + if(mob.combatTarget != null){ //chase player if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange())) {