mirror of
https://github.com/magefree/mage.git
synced 2026-01-20 02:10:06 -08:00
remove all contains(cardtype.XX) references, instead use the default interface method
This commit is contained in:
parent
733de2d27f
commit
b5e8c88153
466 changed files with 581 additions and 570 deletions
|
|
@ -33,7 +33,6 @@ import org.junit.Test;
|
|||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class DiscardTest extends CardTestPlayerBase {
|
||||
|
|
@ -64,6 +63,19 @@ public class DiscardTest extends CardTestPlayerBase {
|
|||
assertHandCount(playerA, 1); // the card drawn by Cycling
|
||||
}
|
||||
|
||||
@Test
|
||||
public void AmnesiaTest() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 20);
|
||||
addCard(Zone.HAND, playerA, "Shock");
|
||||
addCard(Zone.HAND, playerA, "Shock");
|
||||
addCard(Zone.HAND, playerA, "Amnesia");
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Amnesia", playerA);
|
||||
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
assertHandCount(playerA, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* With Bazaar of Baghdad, if you use it when you have no cards in hand, you
|
||||
* draw 2, it asks for you to discard 3, but you can't. So the game can't
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue