-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
73 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
Mage.Tests/src/test/java/org/mage/test/cards/single/clu/AmzuSwarmsHungerTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
|
||
package org.mage.test.cards.single.clu; | ||
|
||
import mage.constants.PhaseStep; | ||
import mage.constants.Zone; | ||
import mage.counters.CounterType; | ||
import org.junit.Assert; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
import org.mage.test.serverside.base.CardTestPlayerBase; | ||
|
||
/** | ||
* @author Susucr | ||
*/ | ||
public class AmzuSwarmsHungerTest extends CardTestPlayerBase { | ||
|
||
/** | ||
* {@link mage.cards.a.AmzuSwarmsHunger Amzu, Swarm's Hunger} {3}{B}{G} | ||
* Legendary Creature — Insect Shaman | ||
* Flying, menace | ||
* Other Insects you control have menace. | ||
* Whenever one or more cards leave your graveyard, you may create a 1/1 black and green Insect creature token, | ||
* then put a number of +1/+1 counters on it equal to the greatest mana value among those cards. | ||
* Do this only once each turn. | ||
* 3/3 | ||
*/ | ||
private static final String amzu = "Amzu, Swarm's Hunger"; | ||
|
||
@Test | ||
public void testTwoCreatures() { | ||
|
||
addCard(Zone.BATTLEFIELD, playerA, amzu); | ||
addCard(Zone.BATTLEFIELD, playerA, "Zask, Skittering Swarmlord"); | ||
addCard(Zone.BATTLEFIELD, playerA, "Forest", 4); | ||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4); | ||
addCard(Zone.GRAVEYARD, playerA, "Battlefly Swarm"); | ||
addCard(Zone.GRAVEYARD, playerA, "Saber Ants"); | ||
|
||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Saber Ants", true); | ||
setChoice(playerA, "Yes"); | ||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Battlefly Swarm", true); | ||
|
||
setStrictChooseMode(true); | ||
setStopAt(1, PhaseStep.BEGIN_COMBAT); | ||
execute(); | ||
|
||
assertPermanentCount(playerA, "Insect Token", 1); | ||
assertCounterCount(playerA, "Insect Token", CounterType.P1P1, 4); | ||
} | ||
|
||
@Test | ||
public void testGraveyardExile() { | ||
|
||
addCard(Zone.BATTLEFIELD, playerA, amzu); | ||
addCard(Zone.BATTLEFIELD, playerA, "Swamp", 1); | ||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 1); | ||
addCard(Zone.GRAVEYARD, playerA, "Living Hive"); | ||
addCard(Zone.GRAVEYARD, playerA, "Saber Ants"); | ||
addCard(Zone.HAND, playerA, "Rakdos Charm"); | ||
|
||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Rakdos Charm", true); | ||
setModeChoice(playerA, "1"); // Exile target player’s graveyard. | ||
addTarget(playerA, playerA); | ||
setChoice(playerA, "Yes"); | ||
|
||
setStrictChooseMode(true); | ||
setStopAt(1, PhaseStep.BEGIN_COMBAT); | ||
execute(); | ||
|
||
assertPermanentCount(playerA, "Insect Token", 1); | ||
assertCounterCount(playerA, "Insect Token", CounterType.P1P1, 8); | ||
} | ||
} |