[EVE] fixed implementation of Hotheaded Giant

This commit is contained in:
Evan Kranzler 2022-02-28 08:45:13 -05:00
parent 63de2dc258
commit 6c643fdc5e
5 changed files with 63 additions and 11 deletions

View file

@ -0,0 +1,47 @@
package org.mage.test.cards.single.eve;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import mage.counters.CounterType;
import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
* @author TheElk801
*/
public class HotheadedGiantTest extends CardTestPlayerBase {
private static final String giant = "Hotheaded Giant";
private static final String goblin = "Mons's Goblin Raiders";
@Test
public void testSpell() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
addCard(Zone.HAND, playerA, goblin);
addCard(Zone.HAND, playerA, giant);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, goblin);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, giant);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
assertCounterCount(playerA, giant, CounterType.M1M1, 0);
}
@Test
public void testNoSpell() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
addCard(Zone.HAND, playerA, giant);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, giant);
setStrictChooseMode(true);
setStopAt(1, PhaseStep.END_TURN);
execute();
assertAllCommandsUsed();
assertCounterCount(playerA, giant, CounterType.M1M1, 2);
}
}

View file

@ -14,7 +14,7 @@ public class SoulReapTest extends CardTestPlayerBase {
private static final String rats = "Muck Rats";
@Test
public void t() {
public void testSpell() {
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 3);
addCard(Zone.BATTLEFIELD, playerA, lion);
addCard(Zone.HAND, playerA, reap);
@ -36,7 +36,7 @@ public class SoulReapTest extends CardTestPlayerBase {
}
@Test
public void t2() {
public void testNoSpell() {
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 2);
addCard(Zone.BATTLEFIELD, playerA, lion);
addCard(Zone.HAND, playerA, reap);