mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
- Added some ROE cards.
This commit is contained in:
parent
10d783eed0
commit
78dd1acf3a
1 changed files with 40 additions and 6 deletions
|
@ -9,16 +9,16 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
* @author jeffwadsworth
|
* @author jeffwadsworth
|
||||||
*/
|
*/
|
||||||
public class ArrogantBloodlordTest extends CardTestPlayerBase {
|
public class ArrogantBloodlordTest extends CardTestPlayerBase {
|
||||||
// Gets blocked
|
// blocked trigger
|
||||||
@Test
|
@Test
|
||||||
public void testCardBlocked() {
|
public void testCardBlocked() {
|
||||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Arrogant Bloodlord");
|
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");
|
attack(1, playerA, "Arrogant Bloodlord");
|
||||||
block(1, playerB, "Wall of Air", "Arrogant Bloodlord");
|
block(1, playerB, "Wall of Air", "Arrogant Bloodlord");
|
||||||
|
|
||||||
setStopAt(1, Constants.PhaseStep.POSTCOMBAT_MAIN);
|
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||||
execute();
|
execute();
|
||||||
|
|
||||||
assertLife(playerA, 20);
|
assertLife(playerA, 20);
|
||||||
|
@ -26,7 +26,7 @@ public class ArrogantBloodlordTest extends CardTestPlayerBase {
|
||||||
assertPermanentCount(playerA, "Arrogant Bloodlord", 0);
|
assertPermanentCount(playerA, "Arrogant Bloodlord", 0);
|
||||||
assertPermanentCount(playerB, "Wall of Air", 1);
|
assertPermanentCount(playerB, "Wall of Air", 1);
|
||||||
}
|
}
|
||||||
|
// blocks trigger
|
||||||
@Test
|
@Test
|
||||||
public void testCardBlocker() {
|
public void testCardBlocker() {
|
||||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Caravan Hurda");
|
addCard(Constants.Zone.BATTLEFIELD, playerA, "Caravan Hurda");
|
||||||
|
@ -35,12 +35,46 @@ public class ArrogantBloodlordTest extends CardTestPlayerBase {
|
||||||
attack(1, playerA, "Caravan Hurda");
|
attack(1, playerA, "Caravan Hurda");
|
||||||
block(1, playerB, "Arrogant Bloodlord", "Caravan Hurda");
|
block(1, playerB, "Arrogant Bloodlord", "Caravan Hurda");
|
||||||
|
|
||||||
setStopAt(1, Constants.PhaseStep.POSTCOMBAT_MAIN);
|
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||||
execute();
|
execute();
|
||||||
|
|
||||||
assertLife(playerA, 20);
|
assertLife(playerA, 21);
|
||||||
assertLife(playerB, 20);
|
assertLife(playerB, 20);
|
||||||
assertPermanentCount(playerA, "Caravan Hurda", 1);
|
assertPermanentCount(playerA, "Caravan Hurda", 1);
|
||||||
assertPermanentCount(playerB, "Arrogant Bloodlord", 0);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue