Reduce duplication around AttackFollow's targets.

This commit is contained in:
Paul Chote
2019-06-20 20:32:31 +00:00
committed by reaperrr
parent caa440ce9a
commit 8f7426f579
3 changed files with 53 additions and 49 deletions

View File

@@ -62,7 +62,7 @@ namespace OpenRA.Mods.Cnc.Traits
if (hasTicked && attack.RequestedTarget.Type == TargetType.Invalid)
return NextActivity;
attack.RequestedTarget = target;
attack.SetRequestedTarget(self, target);
hasTicked = true;
}