From ee5620036d91ced757cf7366f160d05ce9d39dd5 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Jun 2024 19:52:35 -0500 Subject: [PATCH] add 4 to attack range to match clients stopping short --- src/engine/gameManager/CombatManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 0038aac1..a5c15fb6 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -154,9 +154,11 @@ public enum CombatManager { if (AbstractCharacter.IsAbstractCharacter(target)) { attackRange += ((AbstractCharacter) target).calcHitBox(); } else { - + //need to handle building attacks range calculations here } + 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()) { //cannot shoot bow while moving; return;