mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
fix #9319 (Disorder in the Court)
This commit is contained in:
parent
6e18dbd2e4
commit
bc9cb7d24e
3 changed files with 109 additions and 7 deletions
|
|
@ -0,0 +1,44 @@
|
|||
package org.mage.test.cards.single.clb;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
public class DisorderInTheCourtTest extends CardTestPlayerBase {
|
||||
|
||||
// {X}{W}{U} Instant
|
||||
// Exile X target creatures, then investigate X times.
|
||||
// Return the exiled cards to the battlefield tapped under their owners’ control at the beginning of the next end step.
|
||||
private static final String disorder = "Disorder in the Court";
|
||||
private static final String leonin = "Leonin Elder"; // Whenever an artifact enters the battlefield, you may gain 1 life.
|
||||
private static final String lizard = "Lagac Lizard";
|
||||
|
||||
|
||||
@Test
|
||||
public void testDisorder() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Tundra", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, leonin);
|
||||
addCard(Zone.BATTLEFIELD, playerB, lizard);
|
||||
addCard(Zone.HAND, playerA, disorder);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, disorder);
|
||||
setChoice(playerA, "X=2");
|
||||
addTarget(playerA, leonin);
|
||||
addTarget(playerA, lizard);
|
||||
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, leonin, 1);
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, lizard, 1);
|
||||
checkPermanentCount("Clue tokens", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Clue Token", 2);
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(2, PhaseStep.UPKEEP);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 20);
|
||||
assertLife(playerB, 20);
|
||||
assertTapped(leonin, true);
|
||||
assertPermanentCount(playerB, lizard, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -35,6 +35,11 @@ public class LaezelsAcrobaticsTest extends CardTestPlayerBase {
|
|||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, knight);
|
||||
setDieRollResult(playerA, 9);
|
||||
castSpell(1, PhaseStep.BEGIN_COMBAT, playerA, acrobatics);
|
||||
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, knight, 1);
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, auramancer, 1);
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, dwarf, 1);
|
||||
|
||||
setChoice(playerA, "When {this} enters the battlefield, create"); // order triggers
|
||||
setChoice(playerA, true); // Auramancer: yes to return
|
||||
addTarget(playerA, wings); // enchantment to return
|
||||
|
|
@ -65,6 +70,11 @@ public class LaezelsAcrobaticsTest extends CardTestPlayerBase {
|
|||
setChoice(playerA, "When {this} enters the battlefield, create"); // order triggers
|
||||
setChoice(playerA, true); // Auramancer: yes to return
|
||||
addTarget(playerA, wings); // enchantment to return
|
||||
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, knight, 1);
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, auramancer, 1);
|
||||
checkExileCount("Exiled", 1, PhaseStep.POSTCOMBAT_MAIN, playerA, dwarf, 1);
|
||||
|
||||
setChoice(playerA, "When {this} enters the battlefield, create"); // order triggers
|
||||
setChoice(playerA, true); // Auramancer: yes to return
|
||||
addTarget(playerA, wings); // enchantment to return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue