public override async Task <int> CardPlayEffect(bool isSpying, bool isReveal)
        {
            var cardsId = GwentMap.GetCards().FilterCards(Group.Copper, CardType.Unit, x => x.HasAllCategorie(Categorie.WildHunt))
                          .Select(x => x.CardId);

            return(await Game.CreateAndMoveStay(PlayerIndex, cardsId.ToArray()));
        }
Example #2
0
        public override async Task <int> CardUseEffect()
        {
            var id = GwentMap.GetCards().Where(x => x.Faction == Game.PlayersFaction[Card.PlayerIndex])
                     .Where(x => x.Group == Group.Copper)
                     .Mess().First().CardId;
            await Game.CreatCard(id, Card.PlayerIndex, new CardLocation(RowPosition.MyStay, 0));

            return(1);
        }
        public override async Task <int> CardPlayEffect(bool isSpying, bool isReveal)
        {
            var list = GwentMap.GetCards()
                       .Where(x => (x.Categories.Contains(Categorie.Spell)) &&
                              (x.Group == Group.Copper || x.Group == Group.Silver))
                       .Mess(RNG).Take(3).Select(x => x.CardId)
                       .ToList();

            return(await Card.CreateAndMoveStay(list));
        }
Example #4
0
        public override async Task <int> CardUseEffect()
        {
            var list = GwentMap.GetCards()
                       .Where(x => x.CardId.CardInfo().CardType == CardType.Unit &&
                              (x.Group == Group.Gold))
                       .Mess(RNG).Take(3).Select(x => x.CardId)
                       .ToList();

            return(await Card.CreateAndMoveStay(list));
        }
Example #5
0
        public override async Task <int> CardPlayEffect(bool isSpying, bool isReveal)
        {
            var target     = GwentMap.GetCards().Where(x => (x.Group != Group.Leader) && x.CardInfo().CardType == CardType.Unit).Mess(RNG).First();
            var switchCard = await Card.GetMenuSwitch(("猜疑", "小于6."), ("警告", "等于6"), ("贪婪", "大于6"));

            int juggnum = target.Strength == 6 ? 6 : (target.Strength > 6 ? 7 : 5);

            if (switchCard != juggnum - 5)
            {
                return(0);
            }
            await Game.CreateCard(target.CardId, PlayerIndex, new CardLocation(RowPosition.MyStay, 0));

            return(1);
        }
        public override async Task <int> CardUseEffect()
        {
            var target = GwentMap.GetCards()
                         .Where(x => x.Is(Group.Copper, CardType.Unit, x => x.HasAnyCategorie(Categorie.Necrophage, Categorie.Insectoid)))
                         .Select(x => x.CardId);
            var count = (await Game.CreateAndMoveStay(PlayerIndex, target.ToArray()));

            if (count == 0)
            {
                return(0);
            }

            await Game.PlayersStay[PlayerIndex][0].Effect.Boost(1, Card);

            return(1);
        }