Exception for siege when slotting.

This commit is contained in:
2023-08-21 17:11:20 -04:00
parent 039e55673b
commit 7eab14938d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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<Integer, MobEquipment> equip = null;