Example #1
0
        private void AddOmegaLeaderPilotAbility()
        {
            GenericShip enemyship;

            if (Combat.Defender.ShipId == HostShip.ShipId)
            {
                enemyship = Combat.Attacker;
            }
            else
            {
                enemyship = Combat.Defender;
            }

            char targetLock = HostShip.GetTargetLockLetterPair(enemyship);

            if (targetLock != ' ')
            {
                enemyship.OnTryAddAvailableActionEffect += UseOmegaLeaderRestriction;
                enemyship.OnAttackFinish += RemoveOmegaLeaderPilotAbility;
            }
        }