From 1d74643fe34457fbf70fc827c8a6617f17b112e1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 22 Apr 2023 17:49:26 -0500 Subject: [PATCH] None added to enum MonsterType --- src/engine/Enum.java | 1 + src/engine/ai/MobileFSM.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index 89b0f995..dd92087e 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -50,6 +50,7 @@ public class Enum { } public enum MonsterType implements EnumBitSetHelper { + None, Aelfborn, All, Animal, diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index dae40c36..3f31ddaa 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -552,7 +552,7 @@ public class MobileFSM { } public static void GuardMinionLogic(Mob mob){ - if(mob.despawned){ + if(mob.despawned || mob.isAlive() == false){ if(System.currentTimeMillis() > mob.deathTime + (mob.spawnTime * 1000)){ mob.respawn(); }