private void StartSelection()
 {
     if (ShipsThatCanBeActivated.Count > 0)
     {
         Ability.SelectTargetForAbility(
             WhenShipIsSelected,
             GetAlreadyFilteredTargets,
             GetAiPriority,
             Ability.HostShip.Owner.PlayerNo,
             AbilityDescription.Name,
             AbilityDescription.Description,
             AbilityDescription.ImageSource,
             showSkipButton: true,
             callback: AfterShipIsSelected
             );
     }
     else
     {
         OnFinish();
     }
 }
Exemplo n.º 2
0
        public override void DoAction(GenericAbility ability)
        {
            Ability = ability;

            if (ability.TargetsForAbilityExist(FilterTargets))
            {
                ability.SelectTargetForAbility(
                    WhenSelected,
                    FilterTargets,
                    GetAiSelectShipPriority,
                    ability.HostShip.Owner.PlayerNo,
                    AbilityDescription.Name,
                    AbilityDescription.Description,
                    AbilityDescription.ImageSource,
                    ShowSkipButton
                    );
            }
            else
            {
                Triggers.FinishTrigger();
            }
        }