Fix that Carryalls still pick owner changed units

This commit is contained in:
Mustafa Alperen Seki
2017-02-21 18:04:53 +02:00
committed by GitHub
parent eaf55a864c
commit bf0c4f7e1a

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;