remove all contains(cardtype.XX) references, instead use the default interface method

This commit is contained in:
ingmargoudt 2017-03-05 09:14:33 +01:00
parent 733de2d27f
commit b5e8c88153
466 changed files with 581 additions and 570 deletions

View file

@ -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