forked from MagicBane/Server
add 4 to attack range to match clients stopping short
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user