2011-06-12 21:58:19 -07:00
|
|
|
package magic.test;
|
|
|
|
|
|
|
|
import magic.model.*;
|
|
|
|
import magic.model.phase.MagicMainPhase;
|
|
|
|
|
|
|
|
class TestDoubleStrikeDread extends TestGameBuilder {
|
|
|
|
public MagicGame getGame() {
|
|
|
|
final MagicTournament tournament=new MagicTournament();
|
|
|
|
tournament.setDifficulty(6);
|
|
|
|
|
|
|
|
final MagicPlayerProfile profile=new MagicPlayerProfile("bgruw");
|
|
|
|
final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile,15);
|
|
|
|
final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile,14);
|
|
|
|
tournament.setPlayers(new MagicPlayerDefinition[]{player1,player2});
|
|
|
|
tournament.setStartPlayer(0);
|
|
|
|
|
|
|
|
final MagicGame game=tournament.nextGame(true);
|
|
|
|
game.setPhase(MagicMainPhase.getFirstInstance());
|
|
|
|
final MagicPlayer player=game.getPlayer(0);
|
|
|
|
final MagicPlayer opponent=game.getPlayer(1);
|
|
|
|
|
|
|
|
MagicPlayer P = player;
|
|
|
|
|
2011-06-13 05:59:43 -07:00
|
|
|
P.setLife(10);
|
2011-06-12 21:58:19 -07:00
|
|
|
addToLibrary(P, "Plains", 10);
|
|
|
|
createPermanent(game,P,"Rupture Spire",false,8);
|
|
|
|
createPermanent(game,P,"Dread",false,1);
|
|
|
|
createPermanent(game,P,"Dissipation Field",false,1);
|
2011-06-13 05:59:43 -07:00
|
|
|
createPermanent(game,P,"Sword of Body and Mind",false,1);
|
|
|
|
createPermanent(game,P,"Sword of Light and Shadow",false,1);
|
2011-06-12 21:58:19 -07:00
|
|
|
createPermanent(game,P,"Hearthfire Hobgoblin", false, 1);
|
2011-06-13 05:59:43 -07:00
|
|
|
createPermanent(game,P,"Oracle of Nectars", false, 1);
|
|
|
|
addToGraveyard(P,"Oracle of Nectars", 1);
|
2011-06-12 21:58:19 -07:00
|
|
|
addToHand(P, "Pacifism", 2);
|
|
|
|
|
|
|
|
|
|
|
|
P = opponent;
|
|
|
|
|
2011-06-13 05:59:43 -07:00
|
|
|
P.setLife(10);
|
2011-06-12 21:58:19 -07:00
|
|
|
addToLibrary(P, "Plains", 10);
|
|
|
|
createPermanent(game,P,"Rupture Spire",false,8);
|
|
|
|
createPermanent(game,P,"Hearthfire Hobgoblin", false, 1);
|
|
|
|
createPermanent(game,P,"Dread",false,1);
|
|
|
|
createPermanent(game,P,"Dissipation Field",false,1);
|
|
|
|
addToHand(P, "Pacifism", 2);
|
|
|
|
|
|
|
|
return game;
|
|
|
|
}
|
|
|
|
}
|