magarena/src/magic/test/TestDoubleStrikeDread.java

44 lines
1.5 KiB
Java
Raw Normal View History

package magic.test;
2012-09-26 23:11:44 -07:00
import magic.model.MagicDuel;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.phase.MagicMainPhase;
2013-06-23 18:33:35 -07:00
class TestDoubleStrikeDread extends TestGameBuilder {
public MagicGame getGame() {
final MagicDuel duel=createDuel();
final MagicGame game=duel.nextGame();
2012-08-26 01:46:26 -07:00
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);
2012-08-26 01:46:26 -07:00
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);
2013-06-23 18:33:35 -07:00
P = opponent;
2013-06-23 18:33:35 -07:00
P.setLife(10);
addToLibrary(P, "Plains", 10);
2012-08-26 01:46:26 -07:00
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);
2013-06-23 18:33:35 -07:00
2012-08-26 01:46:26 -07:00
return game;
}
}