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:
reaperrr
2017-02-27 21:14:46 +01:00
committed by GitHub

View File

@@ -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;