mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
fixed Rhythm of the Wild not giving Riot to creatures that weren't cast
This commit is contained in:
parent
481b5f04ea
commit
34e3bb42db
4 changed files with 134 additions and 19 deletions
|
|
@ -8,7 +8,6 @@ import org.junit.Test;
|
|||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class RiotTest extends CardTestPlayerBase {
|
||||
|
|
@ -17,7 +16,7 @@ public class RiotTest extends CardTestPlayerBase {
|
|||
* A creature with riot enters the battlefield with a +1/+1 counter on it or
|
||||
* with haste, its controller's choice. This choice is made as the creature
|
||||
* enters the battlefield, so no one can respond to the choice.
|
||||
*
|
||||
* <p>
|
||||
* The creature will have the chosen bonus the moment it enters the
|
||||
* battlefield. If you choose to have the creature gain haste, it keeps
|
||||
* haste even after the turn ends. This could matter if another player gains
|
||||
|
|
@ -113,4 +112,56 @@ public class RiotTest extends CardTestPlayerBase {
|
|||
assertAbility(playerA, "Silvercoat Lion", HasteAbility.getInstance(), true);
|
||||
assertAbility(playerA, "Silvercoat Lion", new RiotAbility(), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void RiotRhythmOfTheWildNotCastBoost() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
|
||||
// Creature spells you control can't be countered.
|
||||
// Nontoken creatures you control have riot.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Rhythm of the Wild", 1);
|
||||
|
||||
// Riot (This creature enters the battleifled with your choice of a +1/+1 counter or haste.)
|
||||
addCard(Zone.HAND, playerA, "Exhume", 1); // Each player returns a creature card from their graveyard to the battlefield
|
||||
addCard(Zone.GRAVEYARD, playerA, "Silvercoat Lion", 1); // Creature {1}{W} 2/2
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Exhume");
|
||||
setChoice(playerA, "Yes"); // yes - counter
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
assertPowerToughness(playerA, "Silvercoat Lion", 3, 3);
|
||||
assertAbility(playerA, "Silvercoat Lion", HasteAbility.getInstance(), false);
|
||||
assertAbility(playerA, "Silvercoat Lion", new RiotAbility(), true);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void RiotRhythmOfTheWildNotCastHaste() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
|
||||
|
||||
// Creature spells you control can't be countered.
|
||||
// Nontoken creatures you control have riot.
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Rhythm of the Wild", 1);
|
||||
|
||||
// Riot (This creature enters the battleifled with your choice of a +1/+1 counter or haste.)
|
||||
addCard(Zone.HAND, playerA, "Exhume", 1); // Each player returns a creature card from their graveyard to the battlefield
|
||||
addCard(Zone.GRAVEYARD, playerA, "Silvercoat Lion", 1); // Creature {1}{W} 2/2
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Exhume");
|
||||
setChoice(playerA, "No"); // no - haste
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
|
||||
execute();
|
||||
assertAllCommandsUsed();
|
||||
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
assertPowerToughness(playerA, "Silvercoat Lion", 2, 2);
|
||||
assertAbility(playerA, "Silvercoat Lion", HasteAbility.getInstance(), true);
|
||||
assertAbility(playerA, "Silvercoat Lion", new RiotAbility(), false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue