2011-06-12 21:58:19 -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;
|
2011-08-30 23:08:53 -07:00
|
|
|
import magic.model.MagicGame;
|
|
|
|
import magic.model.MagicPlayer;
|
|
|
|
import magic.model.MagicPlayerDefinition;
|
2011-06-12 21:58:19 -07:00
|
|
|
import magic.model.phase.MagicMainPhase;
|
|
|
|
|
2013-06-23 18:33:35 -07:00
|
|
|
class TestDoubleStrikeDread extends TestGameBuilder {
|
2011-06-12 21:58:19 -07:00
|
|
|
public MagicGame getGame() {
|
2012-08-26 01:46:26 -07:00
|
|
|
final MagicDuel duel=new MagicDuel();
|
|
|
|
duel.setDifficulty(6);
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2014-03-13 03:24:17 -07:00
|
|
|
final MagicDeckProfile profile=new MagicDeckProfile("bgruw");
|
2012-08-26 01:46:26 -07:00
|
|
|
final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile,15);
|
|
|
|
final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile,14);
|
|
|
|
duel.setPlayers(new MagicPlayerDefinition[]{player1,player2});
|
|
|
|
duel.setStartPlayer(0);
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2012-08-26 01:46:26 -07:00
|
|
|
final MagicGame game=duel.nextGame(true);
|
|
|
|
game.setPhase(MagicMainPhase.getFirstInstance());
|
|
|
|
final MagicPlayer player=game.getPlayer(0);
|
|
|
|
final MagicPlayer opponent=game.getPlayer(1);
|
2011-06-12 21:58:19 -07:00
|
|
|
|
|
|
|
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);
|
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);
|
2011-06-12 21:58:19 -07:00
|
|
|
addToHand(P, "Pacifism", 2);
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2011-06-12 21:58:19 -07:00
|
|
|
|
|
|
|
P = opponent;
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2011-06-13 05:59:43 -07:00
|
|
|
P.setLife(10);
|
2011-06-12 21:58:19 -07:00
|
|
|
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);
|
2011-06-12 21:58:19 -07:00
|
|
|
addToHand(P, "Pacifism", 2);
|
2013-06-23 18:33:35 -07:00
|
|
|
|
2012-08-26 01:46:26 -07:00
|
|
|
return game;
|
2011-06-12 21:58:19 -07:00
|
|
|
}
|
|
|
|
}
|