diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/ChampionOfLambholtTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/ChampionOfLambholtTest.java new file mode 100644 index 0000000000..e46d6767b6 --- /dev/null +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/ChampionOfLambholtTest.java @@ -0,0 +1,40 @@ +package org.mage.test.cards.single; + +import mage.constants.PhaseStep; +import mage.constants.Zone; +import org.junit.Test; +import org.mage.test.serverside.base.CardTestPlayerBase; + +/** + * Created by goesta on 11/02/2017. + */ +public class ChampionOfLambholtTest extends CardTestPlayerBase { + + @Test + public void testThatEffectIsTriggeredByControllingPlayer() { + addCard(Zone.BATTLEFIELD, playerA, "Champion of Lambholt"); + addCard(Zone.BATTLEFIELD, playerA, "Plains", 5); + addCard(Zone.HAND, playerA, "Increasing Devotion"); + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Increasing Devotion"); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertPowerToughness(playerA, "Champion of Lambholt", 6, 6); + } + + @Test + public void testThatEffectIsNotTriggeredByOpponentPlayer() { + addCard(Zone.BATTLEFIELD, playerA, "Champion of Lambholt"); + addCard(Zone.BATTLEFIELD, playerB, "Plains", 5); + addCard(Zone.HAND, playerB, "Increasing Devotion"); + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerB, "Increasing Devotion"); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertPowerToughness(playerA, "Champion of Lambholt", 1, 1); + } +}