mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
Test and fix for sacrificing creature with protection
This commit is contained in:
parent
8bceab52de
commit
5199e2e81a
3 changed files with 43 additions and 31 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue