Fix that Carryalls still pick owner changed units
This commit is contained in:
committed by
GitHub
parent
eaf55a864c
commit
bf0c4f7e1a
@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (cargo != carryall.Carryable)
|
if (cargo != carryall.Carryable)
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
|
|
||||||
if (cargo.IsDead || IsCanceled || carryable.IsTraitDisabled)
|
if (cargo.IsDead || IsCanceled || carryable.IsTraitDisabled || !cargo.AppearsFriendlyTo(self))
|
||||||
{
|
{
|
||||||
carryall.UnreserveCarryable(self);
|
carryall.UnreserveCarryable(self);
|
||||||
return NextActivity;
|
return NextActivity;
|
||||||
|
|||||||
Reference in New Issue
Block a user