From 4f28fefbc217ff9871a5318600976119c9b64068 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 4 Jun 2024 20:39:15 -0500 Subject: [PATCH] mobs no longer try to cancel auto-attack jobs they dont have --- src/engine/gameManager/CombatManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index ccc90008..da4a806b 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -632,6 +632,8 @@ public enum CombatManager { } public static void cancelAutoAttackJob(AbstractCharacter attacker, mbEnums.EquipSlotType slot) { + if(attacker.getObjectType().equals(mbEnums.GameObjectType.PlayerCharacter) == false) + return; attacker.getTimestamps().put("Attack" + slot.name(), System.currentTimeMillis()); //handle auto attack job creation