From dc0e14eb2142172d6d3915d2c7e588f114e48099 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 13:07:47 -0400 Subject: [PATCH] AI added earlier in sequence for availability. --- src/engine/objects/Mob.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index b35cb247..99880a14 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1778,6 +1778,14 @@ public class Mob extends AbstractIntelligenceAgent { this.isPlayerGuard = true; } + // Load AI for wall archers + + if (this.contract != null && NPC.ISWallArcher(this.contract)) { + this.BehaviourType = MobBehaviourType.GuardWallArcher; + this.isPlayerGuard = true; + this.spawnTime = 450; + } + if (this.building != null) this.guild = this.building.getGuild(); else @@ -1829,14 +1837,6 @@ public class Mob extends AbstractIntelligenceAgent { this.defenseRating = (short) this.mobBase.getDefenseRating(); this.isActive = true; - // Load AI for wall archers - - if (this.contract != null && NPC.ISWallArcher(this.contract)) { - this.BehaviourType = MobBehaviourType.GuardWallArcher; - this.isPlayerGuard = true; - this.spawnTime = 450; - } - } // Configure parent zone adding this NPC to the