forked from MagicBane/Server
Exception for siege when slotting.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user