diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index f3456e62..05cdbb31 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -61,6 +61,8 @@ public class MobileFSM { if (mob == null) { return; } + if (mob.isGuard()) + awakeNPCguard(mob); STATE state = mob.state; switch (state) { case Idle: diff --git a/src/engine/loot/LootManager.java b/src/engine/loot/LootManager.java index 890a074c..99f6f322 100644 --- a/src/engine/loot/LootManager.java +++ b/src/engine/loot/LootManager.java @@ -90,12 +90,12 @@ public class LootManager { break; } //iterate the booty tables and add items to mob inventory - Item toAdd = getGenTableItem(bse.lootTable, mob); + MobLoot toAdd = getGenTableItem(bse.lootTable, mob); if (toAdd != null) { mob.getCharItemManager().addItemToInventory(toAdd); } if (inHotzone) { - Item toAddHZ = getGenTableItem(bse.lootTable + 1, mob); + MobLoot toAddHZ = getGenTableItem(bse.lootTable + 1, mob); if (toAddHZ != null) mob.getCharItemManager().addItemToInventory(toAddHZ);