Browse Source

Exception for siege when slotting.

mobile-class-refactor
MagicBot 1 year ago
parent
commit
7eab14938d
  1. 2
      src/engine/gameManager/NPCManager.java
  2. 2
      src/engine/objects/Mob.java

2
src/engine/gameManager/NPCManager.java

@ -349,7 +349,7 @@ public enum NPCManager { @@ -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);

2
src/engine/objects/Mob.java

@ -90,7 +90,7 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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;

Loading…
Cancel
Save