Make actors ignore ReturnToBase order if already on resupplier
This commit is contained in:
@@ -860,7 +860,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
else if (order.OrderString == "ReturnToBase" && rearmable != null && rearmable.Info.RearmActors.Any())
|
else if (order.OrderString == "ReturnToBase" && rearmable != null && rearmable.Info.RearmActors.Any())
|
||||||
{
|
{
|
||||||
// Don't restart activity every time deploy hotkey is triggered
|
// Don't restart activity every time deploy hotkey is triggered
|
||||||
if (self.CurrentActivity is ReturnToBase)
|
if (self.CurrentActivity is ReturnToBase || GetActorBelow() != null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!order.Queued)
|
if (!order.Queued)
|
||||||
|
|||||||
Reference in New Issue
Block a user