mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Alternative spell abilities: added support of modes and other extra things in commander, awaken, jump-start, spectacle, retrace and surge abilities;
This commit is contained in:
parent
a8c047a2be
commit
d25ae47104
10 changed files with 138 additions and 89 deletions
|
|
@ -126,4 +126,61 @@ public class CommandersCastTest extends CardTestCommander4Players {
|
|||
assertTappedCount("Forest", true, 2);
|
||||
assertTappedCount("Mountain", true, 3);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_ModesNormal() {
|
||||
// Player order: A -> D -> C -> B
|
||||
|
||||
// Choose four. You may choose the same mode more than once.
|
||||
// • Create a 2/2 Citizen creature token that’s all colors.
|
||||
// • Return target permanent card from your graveyard to your hand.
|
||||
// • Proliferate.
|
||||
// • You gain 4 life.
|
||||
addCard(Zone.HAND, playerA, "Planewide Celebration", 1); // {5}{G}{G}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 7);
|
||||
|
||||
// cast (3 tokens + 4 life)
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Planewide Celebration");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "4");
|
||||
|
||||
checkPermanentCount("after", 1, PhaseStep.BEGIN_COMBAT, playerA, "Citizen", 3);
|
||||
checkLife("after", 1, PhaseStep.BEGIN_COMBAT, playerA, 20 + 4);
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_ModesCommander() {
|
||||
// Player order: A -> D -> C -> B
|
||||
|
||||
// Choose four. You may choose the same mode more than once.
|
||||
// • Create a 2/2 Citizen creature token that’s all colors.
|
||||
// • Return target permanent card from your graveyard to your hand.
|
||||
// • Proliferate.
|
||||
// • You gain 4 life.
|
||||
addCard(Zone.COMMAND, playerA, "Planewide Celebration", 1); // {5}{G}{G}
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 7);
|
||||
|
||||
// cast (3 tokens + 4 life)
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Planewide Celebration");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "1");
|
||||
setModeChoice(playerA, "4");
|
||||
setChoice(playerA, "Yes"); // return commander
|
||||
|
||||
checkPermanentCount("after", 1, PhaseStep.BEGIN_COMBAT, playerA, "Citizen", 3);
|
||||
checkLife("after", 1, PhaseStep.BEGIN_COMBAT, playerA, 20 + 4);
|
||||
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
setStrictChooseMode(true);
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue