mirror of
https://bitbucket.org/projectswg/holocore.git
synced 2026-10-04 21:13:24 -04:00
Fixed broken combat range checks between creatures inside buildings and creatures outside
This commit is contained in:
@@ -501,7 +501,7 @@ public class CombatManager extends Manager {
|
||||
return CombatStatus.NO_TARGET;
|
||||
|
||||
WeaponObject weapon = source.getEquippedWeapon();
|
||||
double dist = source.getLocation().distanceTo(target.getLocation());
|
||||
double dist = source.getLocation().distanceTo(target.getWorldLocation());
|
||||
float commandRange = c.getMaxRange();
|
||||
float range = commandRange > 0 ? commandRange : weapon.getMaxRange();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user