* Double lands - fixed duplicated choices in choose dialog (#7197);

This commit is contained in:
Oleg Agafonov 2020-11-21 12:43:55 +04:00
parent c2c1e157e9
commit 24e2728fca
2 changed files with 33 additions and 8 deletions

View file

@ -196,6 +196,23 @@ public class ModalDoubleFacesCardsTest extends CardTestPlayerBase {
Assert.assertEquals("toughness", 5, card.getToughness().getValue());
}
@Test
public void test_DoubleLands_IgnoreDefaultAbilities() {
// https://github.com/magefree/mage/issues/7197
// Branchloft Pathway - land
// Boulderloft Pathway - land
addCard(Zone.HAND, playerA, "Branchloft Pathway");
setStrictChooseMode(true);
setStopAt(1, PhaseStep.PRECOMBAT_MAIN);
execute();
assertAllCommandsUsed();
// possible bug: duplicated abilities list in main card
Assert.assertEquals("must have only 2 play abilities", 2, playerA.getPlayable(currentGame, true).size());
}
@Test
public void test_PlayFromNonHand_GraveyardByFlashback() {
removeAllCardsFromHand(playerA);