Browse Source

Logging null building

combat-2
MagicBot 9 months ago
parent
commit
441b2fe42a
  1. 4
      src/engine/objects/Mob.java

4
src/engine/objects/Mob.java

@ -1557,11 +1557,15 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed { @@ -1557,11 +1557,15 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
case GuardCaptain:
this.agentType = AIAgentType.GUARDCAPTAIN;
this.spawnDelay = 600;
if (this.building == null)
Logger.error("Captain : " + this.getObjectUUID() + " : " + this.buildingUUID);
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc());
break;
case GuardWallArcher:
this.agentType = AIAgentType.GUARDWALLARCHER;
this.spawnDelay = 450;
if (this.building == null)
Logger.error("Wall Archer : " + this.getObjectUUID() + " : " + this.buildingUUID);
this.guardedCity = ZoneManager.getCityAtLocation(this.building.getLoc());
break;
}

Loading…
Cancel
Save