add Target overload for IsInRange

This commit is contained in:
Bob
2010-11-04 00:37:13 +13:00
committed by Chris Forbes
parent ecf41722c3
commit a77b7af5fd
4 changed files with 13 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.RA
if (IsLeaping) return;
var weapon = self.Trait<AttackBase>().Weapons[0].Info;
if( !Combat.IsInRange( self.CenterLocation, weapon.Range, target.Actor ) ) return;
if( !Combat.IsInRange( self.CenterLocation, weapon.Range, target ) ) return;
self.CancelActivity();
self.QueueActivity(new Leap(self, target));