From b93a47acc0e72a4240d075e2091d9700c6055cf6 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 29 Aug 2023 20:12:48 -0500 Subject: [PATCH] pet death and dismissal fix --- src/engine/objects/Mob.java | 2 ++ 1 file changed, 2 insertions(+) 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 = "";