mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 20:59:14 -08:00
fix Minion of the Wastes, add test
This commit is contained in:
parent
f00e86c47a
commit
f252525cb8
2 changed files with 56 additions and 9 deletions
|
|
@ -0,0 +1,35 @@
|
|||
package org.mage.test.cards.single.tmp;
|
||||
|
||||
import mage.constants.PhaseStep;
|
||||
import mage.constants.Zone;
|
||||
import org.junit.Test;
|
||||
import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||
|
||||
/**
|
||||
* @author xenohedron
|
||||
*/
|
||||
public class MinionOfTheWastesTest extends CardTestPlayerBase {
|
||||
|
||||
private static final String minion = "Minion of the Wastes";
|
||||
/* Trample
|
||||
* As this creature enters, pay any amount of life.
|
||||
* Minion of the Wastes’s power and toughness are each equal to the life paid as it entered.
|
||||
*/
|
||||
|
||||
@Test
|
||||
public void testSimple() {
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 6);
|
||||
addCard(Zone.HAND, playerA, minion);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, minion);
|
||||
setChoice(playerA, "X=3");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(2, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertLife(playerA, 17);
|
||||
assertPowerToughness(playerA, minion, 3, 3);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue