add 4 to attack range to match clients stopping short

This commit is contained in:
2024-06-06 19:59:40 -05:00
parent ee5620036d
commit c0cd365c1d
+2 -1
View File
@@ -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;
}