From 7eab14938daa2ed916781fa22f0404d8e71ca918 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 21 Aug 2023 17:11:20 -0400 Subject: [PATCH] Exception for siege when slotting. --- src/engine/gameManager/NPCManager.java | 2 +- src/engine/objects/Mob.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/NPCManager.java b/src/engine/gameManager/NPCManager.java index 6d468f0e..9aa84dca 100644 --- a/src/engine/gameManager/NPCManager.java +++ b/src/engine/gameManager/NPCManager.java @@ -349,7 +349,7 @@ public enum NPCManager { Mob mobile = (Mob) abstractCharacter; - if (mobile.contract != null) + if (mobile.isSiege == false) abstractCharacter.building.getHirelings().put(abstractCharacter, buildingSlot); } else abstractCharacter.building.getHirelings().put(abstractCharacter, buildingSlot); diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 4c4b911c..b0283f7d 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -90,7 +90,7 @@ public class Mob extends AbstractIntelligenceAgent { private int ownerUID = 0; //only used by pets private AbstractWorldObject fearedObject = null; private int buildingID; - private boolean isSiege = false; + public boolean isSiege = false; private long lastAttackTime = 0; private int lastMobPowerToken = 0; private HashMap equip = null;