* Tap any number of untapped creatures - added card hint, improved targeting, fixed cheating (example: Harmony Of Nature);

This commit is contained in:
Oleg Agafonov 2021-09-05 13:02:16 +04:00
parent fe4d4c0834
commit bf67c4c6b4
4 changed files with 123 additions and 141 deletions

View file

@ -1,4 +1,3 @@
package org.mage.test.cards.abilities.oneshot.destroy;
import mage.constants.PhaseStep;
@ -7,34 +6,36 @@ import org.junit.Test;
import org.mage.test.serverside.base.CardTestPlayerBase;
/**
*
* @author LevelX2
*/
public class WrathOfGodTest extends CardTestPlayerBase {
@Test
public void testDestroy() {
addCard(Zone.BATTLEFIELD, playerA, "Plains",4);
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
addCard(Zone.HAND, playerA, "Wrath of God");
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion");
addCard(Zone.BATTLEFIELD, playerA, "Silvercoat Lion");
// If Mossbridge Troll would be destroyed, regenerate it.
// Tap any number of untapped creatures you control other than Mossbridge Troll with total power 10 or greater: Mossbridge Troll gets +20/+20 until end of turn.
addCard(Zone.BATTLEFIELD, playerA, "Mossbridge Troll");
addCard(Zone.BATTLEFIELD, playerA, "Mossbridge Troll");
// Flying
// Darksteel Gargoyle is indestructible. ("Destroy" effects and lethal damage don't destroy it.)
addCard(Zone.BATTLEFIELD, playerA, "Darksteel Gargoyle");
addCard(Zone.BATTLEFIELD, playerA, "Darksteel Gargoyle");
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion");
addCard(Zone.BATTLEFIELD, playerB, "Mossbridge Troll");
addCard(Zone.BATTLEFIELD, playerB, "Darksteel Gargoyle");
addCard(Zone.BATTLEFIELD, playerB, "Silvercoat Lion");
addCard(Zone.BATTLEFIELD, playerB, "Mossbridge Troll");
addCard(Zone.BATTLEFIELD, playerB, "Darksteel Gargoyle");
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Wrath of God");
setStrictChooseMode(true);
setStopAt(1, PhaseStep.BEGIN_COMBAT);
execute();
assertAllCommandsUsed();
assertPermanentCount(playerA, "Silvercoat Lion", 0);
assertPermanentCount(playerA, "Mossbridge Troll", 0);
assertPermanentCount(playerA, "Darksteel Gargoyle", 1);