Esempio n. 1
0
        public override bool IsAllowedForSquadBuilderPostCheck(SquadList squadList)
        {
            if (squadList.SquadFaction == Faction.Scum)
            {
                return(true);
            }

            if (squadList.SquadFaction == Faction.Rebel)
            {
                if (squadList.HasPilot("Ezra Bridger") || squadList.HasUpgrade("Ezra Bridger"))
                {
                    return(true);
                }
                else
                {
                    Messages.ShowError("Maul cannot be in a Rebel squad that does not contain Ezra Bridger");
                    return(false);
                }
            }

            return(false);
        }
Esempio n. 2
0
        public override bool IsAllowedForSquadBuilderPostCheck(SquadList squadList)
        {
            if (squadList.SquadFaction == Faction.Scum)
            {
                return(true);
            }

            if (squadList.SquadFaction == Faction.Imperial)
            {
                if (squadList.HasUpgrade("Darth Vader") || squadList.HasPilot("Darth Vader"))
                {
                    return(true);
                }
                else
                {
                    Messages.ShowError("0-0-0 cannot be in an Imperial squad without Darth Vader");
                    return(false);
                }
            }

            return(false);
        }