magarena/src/magic/test/TestCelestialPurge.java

57 lines
1.9 KiB
Java
Raw Normal View History

2011-06-07 00:21:58 -07:00
package magic.test;
2014-04-18 14:43:01 -07:00
import magic.model.MagicDeckProfile;
2012-09-26 23:11:44 -07:00
import magic.model.MagicDuel;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPlayerDefinition;
2011-06-07 00:21:58 -07:00
import magic.model.phase.MagicMainPhase;
2013-06-23 18:33:35 -07:00
class TestCelestialPurge extends TestGameBuilder {
2011-06-07 00:21:58 -07:00
/**
* Raging Ravine changed into 3/3 RG creature cannot block Guardian of the
* Guildpack which has protection from monocolored
* Fixed by making the protection check use getColorFlags in addition to getColoredTypeg
*/
public MagicGame getGame() {
final MagicDuel duel=new MagicDuel();
2013-06-23 18:33:35 -07:00
final MagicDeckProfile profile=new MagicDeckProfile("bgruw");
final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile);
final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile);
duel.setPlayers(new MagicPlayerDefinition[]{player1,player2});
duel.setStartPlayer(0);
2013-06-23 18:33:35 -07:00
final MagicGame game=duel.nextGame();
2011-06-07 00:21:58 -07:00
game.setPhase(MagicMainPhase.getFirstInstance());
final MagicPlayer player=game.getPlayer(0);
final MagicPlayer opponent=game.getPlayer(1);
MagicPlayer P = player;
P.setLife(4);
P.setPoison(6);
addToLibrary(P,"Plains",10);
createPermanent(game,P,"Rupture Spire",false,8);
addToHand(P,"Sphere of the Suns",1);
addToHand(P,"Celestial Purge",3);
P = opponent;
2013-06-23 18:33:35 -07:00
2011-06-07 00:21:58 -07:00
P.setLife(1);
P.setPoison(8);
addToLibrary(P,"Island",10);
createPermanent(game,P,"Rupture Spire",false,8);
addToHand(P,"Stonework Puma",1);
addToHand(P,"Llanowar Elves", 1);
addToHand(P,"Prickly Boggart", 1);
addToHand(P,"Veteran Armorer",1);
addToHand(P,"Sphere of the Suns",1);
addToHand(P,"Spell Pierce",1);
addToHand(P,"Bloodmark Mentor",1);
2013-06-23 18:33:35 -07:00
2011-06-07 00:21:58 -07:00
return game;
}
}