Added attack order. Cursor is currently incorrect.
This commit is contained in:
@@ -65,10 +65,12 @@ namespace OpenRa.Game
|
||||
public Order Order( int2 xy, bool lmb )
|
||||
{
|
||||
if (Owner != Game.LocalPlayer)
|
||||
return null;
|
||||
return null;
|
||||
|
||||
var underCursor = Game.UnitInfluence.GetUnitAt( xy ) ?? Game.BuildingInfluence.GetBuildingAt( xy );
|
||||
|
||||
return traits.WithInterface<Traits.IOrder>()
|
||||
.Select( x => x.Order( this, xy, lmb ) )
|
||||
.Select( x => x.Order( this, xy, lmb, underCursor ) )
|
||||
.FirstOrDefault( x => x != null );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user