From d438440556432f90bd278e32ba04488dedcefb36 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Mar 2024 18:49:54 -0600 Subject: [PATCH] guards --- src/engine/objects/Mob.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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); }