Allow attack orders to preempt move completion for turreted units.

This commit is contained in:
Paul Chote
2019-01-27 13:55:58 +00:00
committed by reaperrr
parent 518a54a494
commit dc40a973e3
2 changed files with 26 additions and 0 deletions

View File

@@ -358,8 +358,11 @@ namespace OpenRA.Mods.Common.Traits
self.CancelActivity();
self.QueueActivity(GetAttackActivity(self, target, allowMove, forceAttack));
OnQueueAttackActivity(self, target, queued, allowMove, forceAttack);
}
public virtual void OnQueueAttackActivity(Actor self, Target target, bool queued, bool allowMove, bool forceAttack) { }
public bool IsReachableTarget(Target target, bool allowMove)
{
return HasAnyValidWeapons(target)