From 78dd1acf3aad474f58ca24e5f3cc7134ea55c03f Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Sat, 31 Mar 2012 11:52:46 -0500 Subject: [PATCH] - Added some ROE cards. --- .../test/cards/ArrogantBloodlordTest.java | 46 ++++++++++++++++--- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/ArrogantBloodlordTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/ArrogantBloodlordTest.java index c4141db3cc..ef65f0b258 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/ArrogantBloodlordTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/ArrogantBloodlordTest.java @@ -9,16 +9,16 @@ import org.mage.test.serverside.base.CardTestPlayerBase; * @author jeffwadsworth */ public class ArrogantBloodlordTest extends CardTestPlayerBase { - // Gets blocked + // blocked trigger @Test public void testCardBlocked() { addCard(Constants.Zone.BATTLEFIELD, playerA, "Arrogant Bloodlord"); - addCard(Constants.Zone.BATTLEFIELD, playerB, "Wall of Air", 1); + addCard(Constants.Zone.BATTLEFIELD, playerB, "Wall of Air"); attack(1, playerA, "Arrogant Bloodlord"); block(1, playerB, "Wall of Air", "Arrogant Bloodlord"); - setStopAt(1, Constants.PhaseStep.POSTCOMBAT_MAIN); + setStopAt(1, Constants.PhaseStep.END_TURN); execute(); assertLife(playerA, 20); @@ -26,7 +26,7 @@ public class ArrogantBloodlordTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Arrogant Bloodlord", 0); assertPermanentCount(playerB, "Wall of Air", 1); } - + // blocks trigger @Test public void testCardBlocker() { addCard(Constants.Zone.BATTLEFIELD, playerA, "Caravan Hurda"); @@ -35,12 +35,46 @@ public class ArrogantBloodlordTest extends CardTestPlayerBase { attack(1, playerA, "Caravan Hurda"); block(1, playerB, "Arrogant Bloodlord", "Caravan Hurda"); - setStopAt(1, Constants.PhaseStep.POSTCOMBAT_MAIN); + setStopAt(1, Constants.PhaseStep.END_TURN); execute(); - assertLife(playerA, 20); + assertLife(playerA, 21); assertLife(playerB, 20); assertPermanentCount(playerA, "Caravan Hurda", 1); assertPermanentCount(playerB, "Arrogant Bloodlord", 0); } + // blocked no trigger + @Test + public void testCardBlockedNonTrigger() { + addCard(Constants.Zone.BATTLEFIELD, playerA, "Arrogant Bloodlord"); + addCard(Constants.Zone.BATTLEFIELD, playerB, "Grizzly Bears"); + + attack(1, playerA, "Arrogant Bloodlord"); + block(1, playerB, "Grizzly Bears", "Arrogant Bloodlord"); + + setStopAt(1, Constants.PhaseStep.END_TURN); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 20); + assertPermanentCount(playerA, "Arrogant Bloodlord", 1); + assertPermanentCount(playerB, "Grizzly Bears", 0); + } + // blocks no trigger + @Test + public void testCardBlocksNonTrigger() { + addCard(Constants.Zone.BATTLEFIELD, playerA, "Acid Web Spider"); + addCard(Constants.Zone.BATTLEFIELD, playerB, "Arrogant Bloodlord"); + + attack(1, playerA, "Acid Web Spider"); + block(1, playerB, "Arrogant Bloodlord", "Acid Web Spider"); + + setStopAt(1, Constants.PhaseStep.END_TURN); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 20); + assertPermanentCount(playerA, "Acid Web Spider", 1); + assertPermanentCount(playerB, "Arrogant Bloodlord", 1); + } }