Merge pull request #12826 from MustaphaTR/d2k-fix-carryall-owner-change
Fix that Carryalls still pick units changed their owner
This commit is contained in:
@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (cargo != carryall.Carryable)
|
||||
return NextActivity;
|
||||
|
||||
if (cargo.IsDead || IsCanceled || carryable.IsTraitDisabled)
|
||||
if (cargo.IsDead || IsCanceled || carryable.IsTraitDisabled || !cargo.AppearsFriendlyTo(self))
|
||||
{
|
||||
carryall.UnreserveCarryable(self);
|
||||
return NextActivity;
|
||||
|
||||
Reference in New Issue
Block a user