* Some fixes to tests and sacrifice cost.

This commit is contained in:
LevelX2 2016-05-15 20:33:06 +02:00
parent e77817b67a
commit 88e744c04c
6 changed files with 28 additions and 25 deletions

View file

@ -210,6 +210,7 @@ public class ManifestTest extends CardTestPlayerBase {
assertPowerToughness(playerA, "Foundry Street Denizen", 1, 1);
}
/*
I casted a Silence the Believers on a manifested card. It moved to the exile zone face-down.
*/

View file

@ -7,9 +7,9 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* also tests regenerate and
* tests that permanents with protection can be sacrificed
*
* also tests regenerate and tests that permanents with protection can be
* sacrificed
*
* @author BetaSteward
*/
public class FiendOfTheShadowsTest extends CardTestPlayerBase {
@ -17,11 +17,14 @@ public class FiendOfTheShadowsTest extends CardTestPlayerBase {
@Test
public void testCard() {
addCard(Zone.BATTLEFIELD, playerA, "White Knight");
// Whenever Fiend of the Shadows deals combat damage to a player, that player exiles a card from his or her hand. You may play that card for as long as it remains exiled.
// Sacrifice a Human: Regenerate Fiend of the Shadows.
addCard(Zone.BATTLEFIELD, playerA, "Fiend of the Shadows");
addCard(Zone.BATTLEFIELD, playerB, "Mountain");
addCard(Zone.HAND, playerB, "Lightning Bolt");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sacrifice a human: Regenerate {this}.");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Sacrifice a Human: Regenerate {this}.");
addTarget(playerA, "White Knight");
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Lightning Bolt", "Fiend of the Shadows");
setStopAt(1, PhaseStep.END_TURN);
@ -29,8 +32,9 @@ public class FiendOfTheShadowsTest extends CardTestPlayerBase {
assertLife(playerA, 20);
assertLife(playerB, 20);
assertPermanentCount(playerA, "Fiend of the Shadows", 1);
assertPermanentCount(playerA, "White Knight", 0);
assertGraveyardCount(playerB, "Lightning Bolt", 1);
assertPermanentCount(playerA, "Fiend of the Shadows", 1);
}
@Test

View file

@ -51,7 +51,7 @@ public class RemoveFromCombatTest extends CardTestPlayerBase {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
addCard(Zone.HAND, playerA, "Lightning Blast", 1);
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 2);
addCard(Zone.BATTLEFIELD, playerB, "Forest", 2);
addCard(Zone.BATTLEFIELD, playerB, "Elvish Mystic", 1);
// Forests you control are 1/1 green Elf creatures that are still lands.
@ -60,7 +60,8 @@ public class RemoveFromCombatTest extends CardTestPlayerBase {
addCard(Zone.BATTLEFIELD, playerB, "Stomping Ground");
attack(2, playerB, "Stomping Ground");
activateAbility(2, PhaseStep.DECLARE_ATTACKERS, playerB, "{1}{G},Sacrifice an Elf: Target creature gets +3/+3", "Stomping Ground");
activateAbility(2, PhaseStep.DECLARE_ATTACKERS, playerB, "{1}{G}", "Stomping Ground");
setChoice(playerB, "Elvish Mystic");
castSpell(2, PhaseStep.DECLARE_BLOCKERS, playerA, "Lightning Blast", "Ambush Commander");
setStopAt(2, PhaseStep.COMBAT_DAMAGE);
execute();