Introduce AirAttackType

Aircraft attack behavior (currently FlyBy or Hover)
is now controlled via this instead of the CanHover boolean.
This commit is contained in:
reaperrr
2019-06-08 14:56:42 +02:00
committed by abcdefg30
parent b59ae476e4
commit c8a42cbce2
7 changed files with 90 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ namespace OpenRA.Mods.Common.Activities
if (!isAirborne)
QueueChild(self, new TakeOff(self), true);
if (!aircraft.Info.CanHover)
if (attackAircraft.Info.AttackType == AirAttackType.Strafe)
{
if (target.IsInRange(pos, attackAircraft.GetMinimumRange()))
QueueChild(self, new FlyTimed(ticksUntilTurn, self), true);