Introduce AirAttackType
Aircraft attack behavior (currently FlyBy or Hover) is now controlled via this instead of the CanHover boolean.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user