|
Revision 37531, 0.6 kB
(checked in by isaisstillalive, 3 years ago)
|
|
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Linq;
|
|---|
| 4 | using System.Text;
|
|---|
| 5 |
|
|---|
| 6 | namespace DominionEngine.CardInfo
|
|---|
| 7 | {
|
|---|
| 8 | public class Moneylender : CardInfo, IAction
|
|---|
| 9 | {
|
|---|
| 10 | public override Worth Cost { get { return Worth.Coin(4); } }
|
|---|
| 11 |
|
|---|
| 12 | public void Action()
|
|---|
| 13 | {
|
|---|
| 14 | //Trash a Copper from your hand.
|
|---|
| 15 | var trashCard = Player.Choose(CardPosition.Hand, cardinfo => cardinfo is Copper);
|
|---|
| 16 | trashCard.Trash();
|
|---|
| 17 | //If you do, +3 Coin.
|
|---|
| 18 | if (trashCard.Count == 1) Player.Coin += 3;
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|