From 9f58e211a8dd5cf7dae530bf149d504d2ea46cb7 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Mar 2024 17:41:07 -0600 Subject: [PATCH] guards --- src/engine/objects/MobBase.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/MobBase.java b/src/engine/objects/MobBase.java index 43f4d6ae..a58276c4 100644 --- a/src/engine/objects/MobBase.java +++ b/src/engine/objects/MobBase.java @@ -89,9 +89,11 @@ public class MobBase extends AbstractGameObject { }else { this.bootySet = rs.getInt("bootySet"); } - - this.fsm = Enum.MobBehaviourType.valueOf(rs.getString("fsm")); - + if(this.loadID == 14104){ + this.fsm = Enum.MobBehaviourType.Aggro; + }else { + this.fsm = Enum.MobBehaviourType.valueOf(rs.getString("fsm")); + } this.flags = EnumBitSet.asEnumBitSet(rs.getLong("flags"), Enum.MobFlagType.class); this.notEnemy = EnumBitSet.asEnumBitSet(rs.getLong("notEnemy"), Enum.MonsterType.class); this.enemy = EnumBitSet.asEnumBitSet(rs.getLong("enemy"), Enum.MonsterType.class);