Base AttackAircraft on AttackFollow and get rid of SequenceActivities.

This commit is contained in:
tovl
2019-03-30 20:35:02 +01:00
committed by reaperrr
parent da6bf1a57d
commit f16ff9eaa0
5 changed files with 128 additions and 66 deletions

View File

@@ -59,10 +59,10 @@ namespace OpenRA.Mods.Cnc.Traits
{
// Check that AttackTDGunboatTurreted hasn't cancelled the target by modifying attack.Target
// Having both this and AttackTDGunboatTurreted modify that field is a horrible hack.
if (hasTicked && attack.requestedTarget.Type == TargetType.Invalid)
if (hasTicked && attack.RequestedTarget.Type == TargetType.Invalid)
return NextActivity;
attack.requestedTarget = target;
attack.RequestedTarget = target;
hasTicked = true;
}