Disable preemptive targeting for queued orders.

This commit is contained in:
tovl
2019-08-09 23:57:57 +02:00
committed by Paul Chote
parent 4193247169
commit 5393b689d4
3 changed files with 6 additions and 13 deletions

View File

@@ -63,11 +63,7 @@ namespace OpenRA.Mods.Common.Activities
ChildActivity.Cancel(self);
var attackBases = autoTarget.ActiveAttackBases;
foreach (var ab in attackBases)
{
var activity = ab.GetAttackActivity(self, target, true, false);
QueueChild(activity);
ab.OnQueueAttackActivity(self, activity, target, true, false);
}
QueueChild(ab.GetAttackActivity(self, target, true, false));
// Make sure to continue moving when the attack activities have finished.
QueueChild(getInner());