예제 #1
0
        private void CheckTrigger(GenericShip host)
        {
            /* FAQ:
             * A ship that executes a maneuver that is not on its dial (such as an ionized ship, a ship using Inertial Dampeners,
             * or Juno Eclipse using her pilot ability to execute a maneuver that is not on her dial) cannot use Lightning Reflexes.
             * (X-Wing FAQ, Version 3.2, Updated 09/04/2015) */
            if (!HostShip.HasManeuver(HostShip.AssignedManeuver.ToString()))
            {
                return;
            }
            if (BoardTools.Board.IsOffTheBoard(host))
            {
                return;
            }

            if (HostShip.AssignedManeuver.ColorComplexity == MovementComplexity.Normal || HostShip.AssignedManeuver.ColorComplexity == MovementComplexity.Easy)
            {
                RegisterAbilityTrigger(
                    TriggerTypes.OnMovementFinish,
                    (s, e) => AskToUseAbility(
                        HostUpgrade.UpgradeInfo.Name,
                        NeverUseByDefault,
                        UseAbility,
                        descriptionLong: "Do you want to discard this card to rotate your ship 180° and receive 1 stress token after the \"Check Pilot Stress\" step?",
                        imageHolder: HostUpgrade
                        )
                    );
            }
        }
예제 #2
0
        private void CheckTrigger(GenericShip host)
        {
            /* FAQ:
             * A ship that executes a maneuver that is not on its dial (such as an ionized ship, a ship using Inertial Dampeners,
             * or Juno Eclipse using her pilot ability to execute a maneuver that is not on her dial) cannot use Lightning Reflexes.
             * (X-Wing FAQ, Version 3.2, Updated 09/04/2015) */
            if (!HostShip.HasManeuver(HostShip.AssignedManeuver.ToString()))
            {
                return;
            }

            if (HostShip.AssignedManeuver.ColorComplexity == ManeuverColor.White || HostShip.AssignedManeuver.ColorComplexity == ManeuverColor.Green)
            {
                RegisterAbilityTrigger(TriggerTypes.OnShipMovementFinish, (s, e) => AskToUseAbility(NeverUseByDefault, UseAbility));
            }
        }