magarena/src/magic/test/TestDoubleStrikeDread.java

50 lines
1.7 KiB
Java
Raw Normal View History

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;
P.setLife(10);
addToLibrary(P, "Plains", 10);
createPermanent(game,P,"Rupture Spire",false,8);
createPermanent(game,P,"Dread",false,1);
createPermanent(game,P,"Dissipation Field",false,1);
createPermanent(game,P,"Sword of Body and Mind",false,1);
createPermanent(game,P,"Sword of Light and Shadow",false,1);
createPermanent(game,P,"Hearthfire Hobgoblin", false, 1);
createPermanent(game,P,"Oracle of Nectars", false, 1);
addToGraveyard(P,"Oracle of Nectars", 1);
addToHand(P, "Pacifism", 2);
P = opponent;
P.setLife(10);
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;
}
}