mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
* Disrupting Shoal - Fixed that the target spell was not countered if the spell was cast with the regular mana costs.
This commit is contained in:
parent
3441b9d216
commit
285cff0b33
3 changed files with 68 additions and 35 deletions
|
|
@ -38,6 +38,48 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
|||
*/
|
||||
public class DisruptingShoalTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testWithManaPaymentEqual() {
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
|
||||
// You may exile a blue card with converted mana cost X from your hand rather than pay Disrupting Shoal's mana cost.
|
||||
// Counter target spell if its converted mana cost is X.
|
||||
addCard(Zone.HAND, playerB, "Disrupting Shoal");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 4); // {X}{U}{U}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Silvercoat Lion");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Disrupting Shoal", "Silvercoat Lion");
|
||||
setChoice(playerB, "X=2");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerB, "Disrupting Shoal", 1);
|
||||
assertGraveyardCount(playerA, "Silvercoat Lion", 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testWithManaPaymentDifferent() {
|
||||
addCard(Zone.HAND, playerA, "Silvercoat Lion");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 2);
|
||||
|
||||
// You may exile a blue card with converted mana cost X from your hand rather than pay Disrupting Shoal's mana cost.
|
||||
// Counter target spell if its converted mana cost is X.
|
||||
addCard(Zone.HAND, playerB, "Disrupting Shoal");
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Island", 3); // {X}{U}{U}
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Silvercoat Lion");
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Disrupting Shoal", "Silvercoat Lion");
|
||||
setChoice(playerB, "X=1");
|
||||
|
||||
setStopAt(1, PhaseStep.BEGIN_COMBAT);
|
||||
execute();
|
||||
|
||||
assertGraveyardCount(playerB, "Disrupting Shoal", 1);
|
||||
assertPermanentCount(playerA, "Silvercoat Lion", 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that Disrupting Shoal can be played with alternate casting costs And
|
||||
* the X Value is equal to the CMC of the exiled blue card
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue