diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 522f01a3..d3c52faf 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -59,7 +59,8 @@ public class MobileFSM { Pet1(null, false, false, false, false, false), Simple(null, false, false, true, false, false), Helpee(null, false, true, true, false, true), - HelpeeWimpy(null, true, false, true, false, false); + HelpeeWimpy(null, true, false, true, false, false), + None(null, false, false, false, false, false); private static HashMap _behaviourTypes = new HashMap<>(); public MobBehaviourType BehaviourHelperType; @@ -565,7 +566,7 @@ public class MobileFSM { } } public static void run(Mob mob) { - if (mob == null) { + if (mob == null || mob.BehaviourType == MobBehaviourType.None) { return; } //add default behaviour type diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 6590cdd1..4144c4db 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -296,7 +296,7 @@ public class Mob extends AbstractIntelligenceAgent { if(rs.getString("fsm").length() > 1) { this.BehaviourType = MobileFSM.MobBehaviourType.valueOf(rs.getString("fsm")); } else{ - this.BehaviourType = MobileFSM.MobBehaviourType.Simple; + this.BehaviourType = MobileFSM.MobBehaviourType.None; } } catch (Exception e) { Logger.error(currentID + "");