Use Target range checks in AttackLeap.
This commit is contained in:
@@ -36,7 +36,9 @@ namespace OpenRA.Mods.RA
|
|||||||
if (a == null)
|
if (a == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!Combat.IsInRange(self.CenterLocation, a.Weapon.Range, target))
|
// TODO: Define weapon ranges as WRange
|
||||||
|
var range = new WRange((int)(1024*a.Weapon.Range));
|
||||||
|
if (!target.IsInRange(self.CenterPosition, range))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self.CancelActivity();
|
self.CancelActivity();
|
||||||
|
|||||||
Reference in New Issue
Block a user