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;