fix Minion of the Wastes, add test

This commit is contained in:
xenohedron 2025-03-15 16:33:37 -04:00
parent f00e86c47a
commit f252525cb8
2 changed files with 56 additions and 9 deletions

View file

@ -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 Wastess 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);
}
}