Skip to content

Commit 04ea1b0

Browse files
committed
Ignore the squad member that is entering cargo
1 parent bac90ae commit 04ea1b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

OpenRA.Mods.CA/Traits/BotModules/SquadManagerBotModuleCA.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System.Collections.Generic;
1313
using System.Linq;
1414
using OpenRA.Mods.CA.Traits.BotModules.Squads;
15+
using OpenRA.Mods.Common.Activities;
1516
using OpenRA.Mods.Common.Traits;
1617
using OpenRA.Primitives;
1718
using OpenRA.Traits;
@@ -163,7 +164,7 @@ public SquadManagerBotModuleCA(Actor self, SquadManagerBotModuleCAInfo info)
163164
World = self.World;
164165
Player = self.Owner;
165166

166-
unitCannotBeOrdered = a => a == null || a.Owner != Player || a.IsDead || !a.IsInWorld;
167+
unitCannotBeOrdered = a => a == null || a.Owner != Player || a.IsDead || !a.IsInWorld || a.CurrentActivity is Enter;
167168
}
168169

169170
bool IsValidEnemyUnit(Actor a)

0 commit comments

Comments
 (0)