From 85e1f3434c424b254467cead5a50433404cc56f4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 4 Mar 2025 15:22:05 -0600 Subject: [PATCH] use 3D range check for mob attacks --- src/engine/mobileAI/Behaviours/StandardMob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/mobileAI/Behaviours/StandardMob.java b/src/engine/mobileAI/Behaviours/StandardMob.java index 8426cf99..518d3b1b 100644 --- a/src/engine/mobileAI/Behaviours/StandardMob.java +++ b/src/engine/mobileAI/Behaviours/StandardMob.java @@ -234,7 +234,7 @@ public class StandardMob { ItemBase mainHand = mob.getWeaponItemBase(true); ItemBase offHand = mob.getWeaponItemBase(false); - if(!CombatUtilities.inRange2D(mob,mob.combatTarget,mob.getRange())) + if(!CombatUtilities.inRangeToAttack(mob,mob.combatTarget)) return; InterestManager.setObjectDirty(mob);