mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
add test coverage
This commit is contained in:
parent
74988a1c23
commit
af05e6f940
1 changed files with 21 additions and 0 deletions
|
|
@ -130,4 +130,25 @@ public class ExcessDamageTest extends CardTestPlayerBase {
|
|||
assertGraveyardCount(playerA, bolt, 1);
|
||||
assertGraveyardCount(playerB, bear, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMagmaticGalleon() {
|
||||
String mg = "Magmatic Galleon";
|
||||
// Whenever one or more creatures your opponents control are dealt excess noncombat damage, create a Treasure token.
|
||||
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
|
||||
addCard(Zone.BATTLEFIELD, playerA, mg);
|
||||
addCard(Zone.HAND, playerA, "Storm's Wrath"); // 4 damage to each creature and each planeswalker
|
||||
addCard(Zone.BATTLEFIELD, playerB, bear, 2);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Storm's Wrath");
|
||||
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(1, PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerA, "Treasure Token", 1);
|
||||
assertGraveyardCount(playerB, bear, 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue