-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Primordial Mist - Fixed selection of face down targets (fixes #7045).
- Loading branch information
Showing
4 changed files
with
61 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
Mage.Tests/src/test/java/org/mage/test/cards/facedown/PrimordialMistTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.mage.test.cards.facedown; | ||
|
||
import mage.constants.EmptyNames; | ||
import mage.constants.PhaseStep; | ||
import mage.constants.Zone; | ||
import org.junit.Test; | ||
import org.mage.test.serverside.base.CardTestPlayerBase; | ||
|
||
/** | ||
* | ||
* @author LevelX2 | ||
*/ | ||
public class PrimordialMistTest extends CardTestPlayerBase { | ||
|
||
/** | ||
* I have Brine Elemental played face down as a morph, an artifact which has | ||
* been manifested and Kadena which has been turned face by Ixidron. I can't | ||
* seem to activate Primordial Mist's second ability for any of these kinds | ||
* of face down creatures: | ||
*/ | ||
@Test | ||
public void test_ExileAndCastMorphFaceDownCard() { | ||
setStrictChooseMode(true); | ||
|
||
// At the beginning of your end step, you may manifest the top card of your library. | ||
// Exile a face-down permanent you control face-up: You may play that card this turn | ||
addCard(Zone.BATTLEFIELD, playerA, "Primordial Mist"); | ||
// Morph {5}{U}{U} | ||
// When Brine Elemental is turned face up, each opponent skips their next untap step. | ||
addCard(Zone.HAND, playerA, "Brine Elemental"); // Creature {5}{U}{U} (5/4) | ||
addCard(Zone.BATTLEFIELD, playerA, "Island", 9); | ||
|
||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Brine Elemental"); | ||
setChoice(playerA, "Yes"); // cast it face down as 2/2 creature | ||
|
||
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN, playerA); | ||
|
||
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Exile a face-down permanent you control"); | ||
setChoice(playerA, EmptyNames.FACE_DOWN_CREATURE.toString()); | ||
|
||
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Brine Elemental"); | ||
setChoice(playerA, "No"); // cast it face down as 2/2 creature | ||
|
||
setChoice(playerA, "Yes"); | ||
|
||
setStopAt(1, PhaseStep.END_TURN); | ||
execute(); | ||
|
||
assertAllCommandsUsed(); | ||
|
||
assertExileCount(playerA, 0); | ||
|
||
assertPowerToughness(playerA, "Brine Elemental", 5, 4); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters