Demotruck logic
This commit is contained in:
@@ -24,7 +24,7 @@ namespace OpenRa.Game.Orders
|
||||
var loc = mi.Location + Game.viewport.Location;
|
||||
var underCursor = Game.FindUnits(loc, loc)
|
||||
.Where(a => a.Owner == Game.LocalPlayer
|
||||
&& a.traits.Contains<Unit>()
|
||||
&& a.traits.WithInterface<IChronoshiftable>().Any()
|
||||
&& a.Info.Selectable).FirstOrDefault();
|
||||
|
||||
var unit = underCursor != null ? underCursor.Info as UnitInfo : null;
|
||||
|
||||
Reference in New Issue
Block a user