Allow attack orders to preempt move completion for turreted units.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user