From f04df1b19363be154e888375d94c060b10a2d5e3 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 7 Oct 2013 18:13:21 +0200 Subject: [PATCH] Formatting. --- .../sets/dragonsmaze/ProgenitorMimic.java | 1 - .../cards/single/ths/HeliodGodOfTheSun.java | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 Mage.Tests/src/test/java/org/mage/test/cards/single/ths/HeliodGodOfTheSun.java diff --git a/Mage.Sets/src/mage/sets/dragonsmaze/ProgenitorMimic.java b/Mage.Sets/src/mage/sets/dragonsmaze/ProgenitorMimic.java index 528f3419818..704ede2acd2 100644 --- a/Mage.Sets/src/mage/sets/dragonsmaze/ProgenitorMimic.java +++ b/Mage.Sets/src/mage/sets/dragonsmaze/ProgenitorMimic.java @@ -52,7 +52,6 @@ import mage.filter.predicate.permanent.TokenPredicate; import mage.game.Game; import mage.game.permanent.Permanent; import mage.sets.tokens.EmptyToken; -import mage.util.CardUtil; import mage.util.functions.ApplyToPermanent; /** diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/ths/HeliodGodOfTheSun.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/ths/HeliodGodOfTheSun.java new file mode 100644 index 00000000000..fad62ef087d --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/ths/HeliodGodOfTheSun.java @@ -0,0 +1,54 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.mage.test.cards.single.ths; + +import mage.constants.CardType; +import mage.constants.PhaseStep; +import mage.constants.Zone; +import mage.game.permanent.Permanent; +import org.junit.Assert; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * + * @author LevelX2 + */ + +public class HeliodGodOfTheSun extends CardTestPlayerBase { + + /** + * Tests Heliod get a God with devotion to white >>= 5 + */ + @Test + public void testHeliodBecomesCreature() { + addCard(Zone.BATTLEFIELD, playerA, "Plains", 5); + addCard(Zone.HAND, playerA, "Angel of Jubilation"); + addCard(Zone.HAND, playerA, "Heliod, God of the Sun"); + addCard(Zone.HAND, playerA, "Spear of Heliod"); + addCard(Zone.HAND, playerA, "Hold the Gates"); + + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Angel of Jubilation"); + castSpell(3, PhaseStep.PRECOMBAT_MAIN, playerA, "Heliod, God of the Sun"); + castSpell(5, PhaseStep.PRECOMBAT_MAIN, playerA, "Spear of Heliod"); + castSpell(7, PhaseStep.PRECOMBAT_MAIN, playerA, "Hold the Gates"); + + + setStopAt(7, PhaseStep.END_TURN); + execute(); + + assertLife(playerA, 20); + assertPermanentCount(playerA, "Angel of Jubilation", 1); + assertPermanentCount(playerA, "Heliod, God of the Sun", 1); + assertPermanentCount(playerA, "Spear of Heliod", 1); + assertPermanentCount(playerA, "Hold the Gates", 1); + + Permanent heliodGodOfTheSun = getPermanent("Heliod, God of the Sun", playerA); + Assert.assertTrue(heliodGodOfTheSun.getCardType().contains(CardType.CREATURE)); + } + + +}