- Added some ROE cards.

This commit is contained in:
jeffwadsworth 2012-03-31 11:52:46 -05:00
parent 10d783eed0
commit 78dd1acf3a

View file

@ -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);
}
}