public override void PerformSpecialAbility(Battleground Battleground) { if (!IsSpecialAbilitiPerformed) { Random rnd = new Random(); for (int i = 0; i < 2; i++) { if (Battleground.InStackCards.Count >= 1) { int RandomNumber = rnd.Next(Battleground.InStackCards.Count); GwentCard Card = Battleground.InStackCards[RandomNumber]; Battleground.InStackCards.Remove(Card); Battleground.AddToInHandCards(Card); } } IsSpecialAbilitiPerformed = true; } }
public bool Impact(Battleground Battlegrnd, int CardLine, int CardPos) { if (CardPos != -1) { GwentCard Card = Battlegrnd.Lines[CardLine][CardPos]; if (Card.CardLine > 3 || Card.Invinsible) { return(false); } else { Battlegrnd.RemoveFromLine(Card.CardLine, Card, false); Battlegrnd.AddToInHandCards(Card); return(true); } } else { return(false); } }