2014-02-02 18:34:49 -08:00
|
|
|
package magic.test;
|
|
|
|
|
2014-04-18 14:43:01 -07:00
|
|
|
import magic.model.MagicDeckProfile;
|
2014-02-02 18:34:49 -08:00
|
|
|
import magic.model.MagicDuel;
|
|
|
|
import magic.model.MagicGame;
|
|
|
|
import magic.model.MagicPlayer;
|
|
|
|
import magic.model.MagicPlayerDefinition;
|
|
|
|
import magic.model.phase.MagicMainPhase;
|
|
|
|
|
|
|
|
class TestDevotion extends TestGameBuilder {
|
|
|
|
public MagicGame getGame() {
|
|
|
|
final MagicDuel duel=new MagicDuel();
|
|
|
|
duel.setDifficulty(6);
|
|
|
|
|
2014-03-13 03:24:17 -07:00
|
|
|
final MagicDeckProfile profile=new MagicDeckProfile("bgruw");
|
2014-02-02 18:34:49 -08: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);
|
|
|
|
|
2014-11-29 04:58:07 -08:00
|
|
|
final MagicGame game=duel.nextGame();
|
2014-02-02 18:34:49 -08:00
|
|
|
game.setPhase(MagicMainPhase.getFirstInstance());
|
|
|
|
final MagicPlayer player=game.getPlayer(0);
|
|
|
|
final MagicPlayer opponent=game.getPlayer(1);
|
|
|
|
|
|
|
|
MagicPlayer P = player;
|
|
|
|
|
|
|
|
P.setLife(6);
|
|
|
|
addToLibrary(P, "Forest", 20);
|
|
|
|
addToLibrary(P, "Island", 20);
|
|
|
|
addToLibrary(P, "Entreat the Angels", 20);
|
|
|
|
addToLibrary(P, "Sliver Overlord", 1);
|
|
|
|
addToLibrary(P, "Wingsteed Rider", 1);
|
|
|
|
addToGraveyard(P, "Ink-Eyes, Servant of Oni", 3);
|
|
|
|
createPermanent(game,P, "Rupture Spire", false, 9);
|
|
|
|
addToHand(P, "Rupture Spire", 1);
|
|
|
|
addToHand(P, "Abhorrent Overlord", 1);
|
|
|
|
addToHand(P, "Purphoros, God of the Forge", 1);
|
|
|
|
addToHand(P, "Dwarven Pony", 5);
|
|
|
|
|
|
|
|
P = opponent;
|
|
|
|
|
|
|
|
P.setLife(20);
|
|
|
|
addToLibrary(P, "Mountain", 20);
|
|
|
|
createPermanent(game,P,"Rupture Spire",false,9);
|
|
|
|
createPermanent(game,P, "Grizzly Bears", false, 1);
|
|
|
|
addToHand(P, "Trained Jackal", 1);
|
|
|
|
addToGraveyard(P, "Ink-Eyes, Servant of Oni", 1);
|
|
|
|
|
|
|
|
return game;
|
|
|
|
}
|
|
|
|
}
|