diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 8d6c0736..b18d1ecd 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -461,6 +461,7 @@ public class Mob extends AbstractIntelligenceAgent { minionMobile.guardCaptain = guardCaptain; minionMobile.spawnTime = (int) (-2.500 * guardCaptain.building.getRank() + 22.5) * 60; minionMobile.behaviourType = Enum.MobBehaviourType.GuardMinion; + minionMobile.agentType = AIAgentType.GUARD; minionMobile.isPlayerGuard = true; minionMobile.guardedCity = guardCaptain.guardedCity; minionMobile.patrolPoints = guardCaptain.building.patrolPoints; @@ -552,6 +553,7 @@ public class Mob extends AbstractIntelligenceAgent { petMinion.healthMax = MobBase.getMobBase(loadID).getHealthMax() * (petMinion.level * 0.5f); petMinion.health.set(petMinion.healthMax); petMinion.behaviourType = MobBehaviourType.Pet1; + petMinion.agentType = AIAgentType.PET; petMinion.firstName = ""; petMinion.lastName = "";