mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
* add ThrummingStone test
* Add rule text for Thrumming Stone * change ThrummingStones effect to be a static continuous effect that gives a triggered ability to spells, rather than being a triggered ability triggered by the stone itself
This commit is contained in:
parent
827dab6d95
commit
4044817641
2 changed files with 121 additions and 4 deletions
|
|
@ -0,0 +1,61 @@
|
|||
package org.mage.test.cards.abilities.other;
|
||||
|
||||
import jdk.nashorn.internal.ir.annotations.Ignore;
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author klayhamn
|
||||
*/
|
||||
public class ThrummingStoneTest extends CardTestPlayerBase {
|
||||
|
||||
@Test
|
||||
public void testApplyForNoneRippleCardsWhenSingleRipple() throws Exception {
|
||||
|
||||
removeAllCardsFromLibrary(playerA);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
|
||||
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
|
||||
|
||||
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle", 1);
|
||||
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
|
||||
setChoice(playerA, "Yes");
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Shadowborn Apostle", 2);
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore // FIXME: This still fails
|
||||
public void testApplyForNoneRippleCardsWhenMultiRipple() throws Exception {
|
||||
|
||||
removeAllCardsFromLibrary(playerA);
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Thrumming Stone");
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp");
|
||||
addCard(Zone.HAND, playerA, "Shadowborn Apostle");
|
||||
|
||||
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
|
||||
addCard(Zone.LIBRARY, playerA, "Swamp", 3);
|
||||
addCard(Zone.LIBRARY, playerA, "Shadowborn Apostle");
|
||||
|
||||
skipInitShuffling();
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Shadowborn Apostle");
|
||||
setChoice(playerA, "Yes");
|
||||
|
||||
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Shadowborn Apostle", 3);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue