Example #1
0
        private void CleanUpFelsWrath(object sender, EventArgs e)
        {
            Phases.Events.OnCombatPhaseEnd_NoTriggers -= ProcessFelsWrath;

            Selection.ChangeActiveShip(HostShip);
            HostShip.DestroyShipForced(Triggers.FinishTrigger);
        }
Example #2
0
        private void CleanUpFelsWrath(object sender, EventArgs e)
        {
            HostShip.PreventDestruction         = false;
            Phases.OnCombatPhaseEnd_NoTriggers -= ProcessFelsWrath;

            Selection.ThisShip = HostShip;
            HostShip.DestroyShipForced(Triggers.FinishTrigger);
        }
Example #3
0
        private void DestroyThisShip(object sender, System.EventArgs e)
        {
            List <GenericShip> sufferedShips = new List <GenericShip>();

            foreach (var ship in Roster.AllShips.Values)
            {
                if (ship.ShipId == HostShip.ShipId)
                {
                    continue;
                }

                DistanceInfo distInfo = new DistanceInfo(HostShip, ship);
                if (distInfo.Range < 2)
                {
                    sufferedShips.Add(ship);
                }
            }

            Messages.ShowInfo("Autopilot Drone is destroyed");
            HostShip.DestroyShipForced(delegate { DealDamageToShips(sufferedShips, 1, true, Triggers.FinishTrigger); });
        }