Fixed aiming not propertly stopped.

This commit is contained in:
Andre Mohren
2021-03-05 14:16:29 +01:00
committed by reaperrr
parent bbbed49f82
commit 1f6e0f582a

View File

@@ -155,6 +155,12 @@ namespace OpenRA.Mods.Common.Activities
return true;
}
protected override void OnLastRun(Actor self)
{
foreach (var attack in attackTraits)
attack.IsAiming = false;
}
protected virtual AttackStatus TickAttack(Actor self, AttackFrontal attack)
{
if (!target.IsValidFor(self))