From c0cd365c1de38bdabea142caca5cf25619ecf466 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Jun 2024 19:59:40 -0500 Subject: [PATCH] add 4 to attack range to match clients stopping short --- src/engine/gameManager/CombatManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index a5c15fb6..53c6254d 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -159,7 +159,8 @@ public enum CombatManager { attackRange += 4; // need to add 4 to the attack range to offset where the client stops short of legitimate range - if (attackRange > 15 && attacker.isMoving()) { + float distance = target.loc.distance(attacker.loc); + if (attackRange > 25 && attacker.isMoving()) { //cannot shoot bow while moving; return; }