Fix units not attack moving to waypoints after resupply/takeoff

This commit is contained in:
abcdefg30
2020-05-18 13:46:51 +02:00
committed by Paul Chote
parent 0ded0355c1
commit 75fe0e524f
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Common.Traits
{
if (rallyPoint != null && rallyPoint.Path.Count > 0)
foreach (var cell in rallyPoint.Path)
reservedFor.QueueActivity(reservedForAircraft.MoveTo(cell, 1, targetLineColor: Color.Green));
reservedFor.QueueActivity(new AttackMoveActivity(reservedFor, () => reservedForAircraft.MoveTo(cell, 1, targetLineColor: Color.OrangeRed)));
else
reservedFor.QueueActivity(new TakeOff(reservedFor));
}