Skip to content

Commit

Permalink
Ignore the squad member that is entering cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
dnqbob committed Mar 16, 2024
1 parent 1947ac7 commit 7f2de95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenRA.Mods.CA/Traits/BotModules/SquadManagerBotModuleCA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using System.Collections.Generic;
using System.Linq;
using OpenRA.Mods.CA.Traits.BotModules.Squads;
using OpenRA.Mods.Common.Activities;
using OpenRA.Mods.Common.Traits;
using OpenRA.Primitives;
using OpenRA.Traits;
Expand Down Expand Up @@ -163,7 +164,7 @@ public SquadManagerBotModuleCA(Actor self, SquadManagerBotModuleCAInfo info)
World = self.World;
Player = self.Owner;

unitCannotBeOrdered = a => a == null || a.Owner != Player || a.IsDead || !a.IsInWorld;
unitCannotBeOrdered = a => a == null || a.Owner != Player || a.IsDead || !a.IsInWorld || a.CurrentActivity is Enter;
}

bool IsValidEnemyUnit(Actor a)
Expand Down

0 comments on commit 7f2de95

Please sign in to comment.