diff --git a/projects/mtg/bin/Res/sets/USG/_cards.dat b/projects/mtg/bin/Res/sets/USG/_cards.dat index 48e4c2c4d..05f5df321 100644 --- a/projects/mtg/bin/Res/sets/USG/_cards.dat +++ b/projects/mtg/bin/Res/sets/USG/_cards.dat @@ -523,8 +523,8 @@ subtype=Aura [card] text=Search your library for a card, put that card into your hand, then discard a card at random. Then shuffle your library. target=*|myLibrary -auto=discard:1 auto=moveTo(myHand) +auto=discard:1 id=10654 name=Gamble rarity=R diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 125fcca79..2ced45052 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -134,6 +134,7 @@ force_of_nature.txt force_of_nature2.txt force_of_nature3.txt fountain_of_youth.txt +gamble.txt ghost_warden.txt giant_growth.txt giant_growth2.txt diff --git a/projects/mtg/bin/Res/test/gamble.txt b/projects/mtg/bin/Res/test/gamble.txt new file mode 100644 index 000000000..2a3ebb505 --- /dev/null +++ b/projects/mtg/bin/Res/test/gamble.txt @@ -0,0 +1,27 @@ +#NAME: Gamble sequence test +#DESC: Gamble lets you *first* search a card +#DESC: from your library, and *then* you have +#DESC: to discard a random card. This means +#DESC: you may end up discarding the card you +#DESC: just searched for. The script tests this +#DESC: by using Gamble from an otherwise empty +#DESC: hand. If the sequence of actions is +#DESC: correct, then you will have to discard +#DESC: the card you just searched for (a +#DESC: Mountain om this case). +[INIT] +firstmain +[PLAYER1] +hand:Gamble +library:Mountain +manapool:{R} +[PLAYER2] +[DO] +Gamble +Mountain +[ASSERT] +firstmain +[PLAYER1] +graveyard:Gamble,Mountain +[PLAYER2] +[END]