mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
fix test failure
This commit is contained in:
parent
76708eaa9f
commit
33852c72e7
1 changed files with 11 additions and 12 deletions
|
|
@ -6,30 +6,29 @@ import org.junit.Test;
|
||||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author Jmlundeen
|
* @author Jmlundeen
|
||||||
*/
|
*/
|
||||||
public class MrNegativeTest extends CardTestPlayerBase {
|
public class MisterNegativeTest extends CardTestPlayerBase {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Mr. Negative
|
Misterr Negative
|
||||||
{5}{W}{B}
|
{5}{W}{B}
|
||||||
Legendary Creature - Human Villain
|
Legendary Creature - Human Villain
|
||||||
Vigilance, lifelink
|
Vigilance, lifelink
|
||||||
When Mr. Negative enters, you may exchange your life total with target opponent. If you lose life this way, draw that many cards.
|
When Misterr Negative enters, you may exchange your life total with target opponent. If you lose life this way, draw that many cards.
|
||||||
5/5
|
5/5
|
||||||
*/
|
*/
|
||||||
private static final String mrNegative = "Mr. Negative";
|
private static final String misterNegative = "Misterr Negative";
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMrNegative() {
|
public void testMisterNegative() {
|
||||||
setStrictChooseMode(true);
|
setStrictChooseMode(true);
|
||||||
|
|
||||||
addCard(Zone.HAND, playerA, mrNegative);
|
addCard(Zone.HAND, playerA, misterNegative);
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Scrubland", 7);
|
addCard(Zone.BATTLEFIELD, playerA, "Scrubland", 7);
|
||||||
setLife(playerB, 15);
|
setLife(playerB, 15);
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, mrNegative);
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, misterNegative);
|
||||||
addTarget(playerA, playerB);
|
addTarget(playerA, playerB);
|
||||||
setChoice(playerA, true);
|
setChoice(playerA, true);
|
||||||
|
|
||||||
|
|
@ -42,14 +41,14 @@ public class MrNegativeTest extends CardTestPlayerBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMrNegativeNoDraw() {
|
public void testMisterNegativeNoDraw() {
|
||||||
setStrictChooseMode(true);
|
setStrictChooseMode(true);
|
||||||
|
|
||||||
addCard(Zone.HAND, playerA, mrNegative);
|
addCard(Zone.HAND, playerA, misterNegative);
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Scrubland", 7);
|
addCard(Zone.BATTLEFIELD, playerA, "Scrubland", 7);
|
||||||
setLife(playerB, 21);
|
setLife(playerB, 21);
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, mrNegative);
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, misterNegative);
|
||||||
addTarget(playerA, playerB);
|
addTarget(playerA, playerB);
|
||||||
setChoice(playerA, true);
|
setChoice(playerA, true);
|
||||||
|
|
||||||
|
|
@ -60,4 +59,4 @@ public class MrNegativeTest extends CardTestPlayerBase {
|
||||||
assertLife(playerA, 21);
|
assertLife(playerA, 21);
|
||||||
assertLife(playerB, 20);
|
assertLife(playerB, 20);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue