mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Merge branch 'master' of https://github.com/klayhamn/mage
This commit is contained in:
commit
634f7fc064
4 changed files with 179 additions and 45 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