From 8af989b75fc8e28356964c168e1305d2b94972b4 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 27 Aug 2023 23:55:02 -0400 Subject: [PATCH] Fix is patrol logic bloc conditional. --- src/engine/objects/Mob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index dddf98c3..bce61776 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1734,7 +1734,8 @@ public class Mob extends AbstractIntelligenceAgent { //assign 5 random patrol points for regular mobs - if (!(this.agentType.equals(AIAgentType.GUARD)) && !this.isPlayerGuard() && !this.isPet() && !this.isNecroPet() && !(this.agentType.equals(AIAgentType.PET)) && !(this.agentType.equals(AIAgentType.CHARMED))) { + if (this.guardCaptain == null && this.isPlayerGuard == false && !isPet() == false && isNecroPet() == false) { + this.patrolPoints = new ArrayList<>(); for (int i = 0; i < 5; ++i) {