mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* Double lands - fixed duplicated choices in choose dialog (#7197);
This commit is contained in:
parent
c2c1e157e9
commit
24e2728fca
2 changed files with 33 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue