Test and fix for sacrificing creature with protection

This commit is contained in:
magenoxx 2012-06-11 14:25:27 +04:00
parent 8bceab52de
commit 5199e2e81a
3 changed files with 43 additions and 31 deletions

View file

@ -0,0 +1,29 @@
package org.mage.test.cards.abilities.oneshot.sacrifice;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author noxx
*/
public class GethsVerdictTest extends CardTestPlayerBase {
/**
* Checks that pro black can still be sacrificed
*/
@Test
public void testVersusProtectionFromBlack() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Constants.Zone.HAND, playerA, "Geth's Verdict");
addCard(Constants.Zone.BATTLEFIELD, playerB, "White Knight");
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Geth's Verdict");
setStopAt(1, Constants.PhaseStep.BEGIN_COMBAT);
execute();
assertPermanentCount(playerB, "White Knight", 0);
assertLife(playerB, 19);
}
}

View file

@ -1,22 +0,0 @@
package org.mage.test.cards.targets.sacrifice;
import mage.Constants;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestBase;
public class GethsVerdict extends CardTestBase {
@Test
public void test() {
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp");
addCard(Constants.Zone.HAND, playerA, "Geth's Verdict");
addCard(Constants.Zone.BATTLEFIELD, playerB, "Copper Myr");
castSpell(playerA, "Geth's Verdict");
execute();
assertPermanentCount(playerB, "Copper Myr", 0);
assertLife(playerB, 19);
}
}