Browse Source

add 4 to attack range to match clients stopping short

combat-3
FatBoy-DOTC 5 months ago
parent
commit
c0cd365c1d
  1. 3
      src/engine/gameManager/CombatManager.java

3
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 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; //cannot shoot bow while moving;
return; return;
} }

Loading…
Cancel
Save