diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index bb06c106..ecce143d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -149,16 +149,15 @@ public class Mob extends AbstractIntelligenceAgent { this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class); this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class); this.firstName = rs.getString("mob_name"); - - if (rs.getString("fsm").length() > 1) + if (this.getMobBaseID() == 14104) {//guards + this.behaviourType = MobBehaviourType.Aggro; + } else if (rs.getString("fsm").length() > 1){ this.behaviourType = MobBehaviourType.valueOf(rs.getString("fsm")); - + } this.currentID = this.dbID; this.agentType = AIAgentType.MOBILE; - if(this.getMobBaseID() == 14104) {//guards - this.behaviourType = MobBehaviourType.Aggro; - } + } catch (Exception e) { Logger.error(e + " " + this.dbID); }