add 4 to attack range to match clients stopping short

This commit is contained in:
2024-06-06 19:52:35 -05:00
parent 8ff06b1200
commit ee5620036d
+3 -1
View File
@@ -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;