コード例 #1
0
        private void R5AstromechAbilityEffect(object sender, System.EventArgs e)
        {
            Selection.ActiveShip = HostShip;

            List <CriticalHitCard.GenericCriticalHit> shipCritsList = HostShip.GetAssignedCritCards().Where(n => n.Type == CriticalCardType.Ship).ToList();

            if (shipCritsList.Count == 1)
            {
                Selection.ActiveShip.FlipFacedownFaceupDamageCard(shipCritsList.First());
                Sounds.PlayShipSound("R2D2-Proud");
                Triggers.FinishTrigger();
            }
            else if (shipCritsList.Count > 1)
            {
                Phases.StartTemporarySubPhaseOld(
                    "R5 Astromech: Select faceup ship Crit",
                    typeof(SubPhases.R5AstromechDecisionSubPhase),
                    Triggers.FinishTrigger
                    );
            }
            else
            {
                Triggers.FinishTrigger();
            }
        }