Fix nonworking attack code in Allies 01

This commit is contained in:
Scott_NZ
2013-01-27 22:43:16 +13:00
parent 63a72c5d28
commit de208e7a2f
3 changed files with 24 additions and 14 deletions

View File

@@ -311,7 +311,7 @@ namespace OpenRA.Mods.RA.Missions
foreach (var rallyPoint in sovietRallyPoints)
{
var units = world.FindAliveCombatantActorsInCircle(Util.CenterOfCell(rallyPoint), 10)
.Where(u => u.IsIdle && u.HasTrait<Mobile>() && u.Owner == soviets);
.Where(u => u.IsIdle && u.HasTrait<Mobile>() && u.HasTrait<AttackBase>() && u.Owner == soviets);
if (units.Count() >= SovietGroupSize)
{
foreach (var unit in units)