This commit is contained in:
Chris Forbes
2010-01-11 22:15:54 +13:00
parent 889828aa02
commit 9c520e07b1
3 changed files with 6 additions and 9 deletions

View File

@@ -31,11 +31,9 @@ namespace OpenRa.Game.Orders
var underCursor = Game.FindUnits(loc, loc)
.Where(a => a.Owner == Game.LocalPlayer
&& a.traits.WithInterface<Chronoshiftable>().Any()
&& a.LegacyInfo.Selectable).FirstOrDefault();
&& a.traits.Contains<Selectable>()).FirstOrDefault();
var unit = underCursor != null ? underCursor.LegacyInfo as LegacyUnitInfo : null;
if (unit != null)
if (underCursor != null)
yield return new Order("ChronosphereSelect", underCursor, null, int2.Zero, power.Name);
}
}