Add AttackOrderPower as Supportpower
This commit is contained in:
@@ -235,7 +235,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (!Ready)
|
||||
return;
|
||||
|
||||
var power = Instances.FirstOrDefault(i => !InstanceDisabled(i));
|
||||
var power = Instances.Where(i => !InstanceDisabled(i))
|
||||
.MinByOrDefault(a => (a.Self.CenterPosition - a.Self.World.Map.CenterOfCell(order.TargetLocation)).HorizontalLengthSquared);
|
||||
if (power == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user