Exemple #1
0
        private void AssignConditionToActivatedShip()
        {
            affectedShip = Selection.ThisShip;
            affectedShip.OnTryAddAvailableDiceModification += UseFennRauRestriction;

            FennRauRebelCondition conditionToken = new FennRauRebelCondition(HostShip);

            conditionToken.TooltipType = HostShip.GetType();
            affectedShip.Tokens.AssignCondition(conditionToken);

            DecisionSubPhase.ConfirmDecision();
        }
Exemple #2
0
            public override bool IsDiceModificationAvailable()
            {
                bool result = false;

                // Second edition Shara Bey only affects Primary Weapon Attacks
                if (HostShip.Owner.PlayerNo == Combat.Attacker.Owner.PlayerNo &&
                    HostShip.GetType() == typeof(Ship.SecondEdition.ARC170Starfighter.SharaBey) &&
                    Combat.ChosenWeapon.WeaponType != WeaponTypes.PrimaryWeapon)
                {
                    return(false);
                }

                if (GetTargetLockTokenLetterOnAnotherShip() != ' ')
                {
                    result = true;
                }
                return(result);
            }