Пример #1
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel();
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicMainPhase.getFirstInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(4);
    P.setPoison(6);
    addToLibrary(P, "Plains", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    addToHand(P, "Inkmoth Nexus", 1);
    addToHand(P, "Stonework Puma", 1);

    P = opponent;

    P.setLife(1);
    P.setPoison(8);
    addToLibrary(P, "Island", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    addToHand(P, "Stonework Puma", 1);
    addToHand(P, "Llanowar Elves", 1);
    addToHand(P, "Prickly Boggart", 1);
    addToHand(P, "Veteran Armorer", 1);

    return game;
  }
Пример #2
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel(MagicAIImpl.MMABC, 6);
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicUpkeepPhase.getInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(20);
    addToLibrary(P, "Forest", 20);
    addToHand(P, "Forest", 1);
    addToHand(P, "Axebane Stag", 1);
    addToHand(P, "Forest", 1);
    addToHand(P, "Brushstrider", 1);
    addToHand(P, "Yavimaya Scion", 1);
    addToHand(P, "Temple of Plenty", 1);
    addToHand(P, "Reaping the Rewards", 1);

    P = opponent;

    P.setLife(20);
    addToLibrary(P, "Forest", 20);
    addToHand(P, "Mountain", 1);
    addToHand(P, "Active Volcano", 1);
    addToHand(P, "Elvish Handservant", 1);
    addToHand(P, "Jayemdae Tome", 1);
    addToHand(P, "Savage Lands", 1);
    addToHand(P, "Forest", 1);
    addToHand(P, "Rupture Spire", 1);

    return game;
  }
Пример #3
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel();
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicMainPhase.getFirstInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(1);
    addToLibrary(P, "Mountain", 1);
    addToGraveyard(P, "Lightning Bolt", 1);
    addToGraveyard(P, "Mountain", 10);
    addToGraveyard(P, "Lightning Bolt", 1);
    addToGraveyard(P, "Mountain", 10);
    createPermanent(P, "Mountain", false, 8);
    createPermanent(P, "Chromatic Lantern", false, 1);
    createPermanent(P, "Bow of Nylea", false, 1);

    P = opponent;

    P.setLife(1);
    addToLibrary(P, "Mountain", 1);
    addToGraveyard(P, "Lightning Bolt", 1);
    addToGraveyard(P, "Mountain", 10);
    addToGraveyard(P, "Lightning Bolt", 1);
    addToGraveyard(P, "Mountain", 10);
    createPermanent(P, "Mountain", false, 8);
    createPermanent(P, "Chromatic Lantern", false, 1);
    createPermanent(P, "Bow of Nylea", false, 1);

    return game;
  }
Пример #4
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel();
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicMainPhase.getFirstInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(5);
    addToLibrary(P, "Forest", 20);
    createPermanent(P, "Thousand Winds", false, 3);
    createPermanent(P, "Island", false, 9);
    createPermanent(P, "Forest", false, 1);
    addToHand(P, "Backslide", 2);
    addToHand(P, "Giant Growth", 1);
    //        addToHand(P, "Lightning Bolt", 1);
    //        addToHand(P, "Ludevic's Test Subject", 2);

    P = opponent;

    P.setLife(1);
    addToLibrary(P, "Forest", 20);
    //        createPermanent(P, "Island", false, 8);
    //        createPermanent(P, "Grizzly Bears", false, 1);
    addToHand(P, "Ludevic's Test Subject", 2);

    return game;
  }
 @Override
 public void executeEvent(final MagicGame game, final MagicEvent event) {
   final MagicPlayer player = event.getPlayer();
   final MagicCardList hand = new MagicCardList(player.getHand());
   for (final MagicCard card : hand) {
     game.doAction(new DiscardCardAction(player, card));
   }
 }
Пример #6
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel(MagicAIImpl.MCTS, 8);
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicUpkeepPhase.getInstance());
    game.setTurnPlayer(game.getPlayer(1));
    game.setTurn(24);
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(20);
    addToLibrary(P, "Forest", 5);
    addToLibrary(P, "Kodama of the South Tree", 1);
    addToLibrary(P, "Forest", 5);
    addToHand(P, "Lifespinner", 1);
    addToHand(P, "Forest", 3);
    createPermanent(P, "Forest", 4);
    createPermanent(P, "Traproot Kami", 3);

    P = opponent;

    P.setLife(20);
    addToLibrary(P, "Forest", 22);
    createPermanent(P, "Forest", 4);

    return game;
  }
Пример #7
0
 @Override
 public void executeEvent(final MagicGame game, final MagicEvent event) {
   final MagicPermanent permanent = event.getPermanent();
   final Collection<MagicPermanent> targets =
       MagicTargetFilterFactory.ATTACKING_CREATURE.filter(event);
   for (final MagicPermanent creature : targets) {
     if (creature != permanent && creature.isAttacking()) {
       game.doAction(new ChangeTurnPTAction(creature, 1, 0));
     }
   }
 }
Пример #8
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel();
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicMainPhase.getFirstInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(20);
    addToLibrary(P, "Plains", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    addToHand(P, "Joraga Warcaller", 2);
    addToHand(P, "Llanowar Elite", 2);

    P = opponent;

    P.setLife(20);
    addToLibrary(P, "Plains", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    createPermanent(P, "Phyrexian Crusader", false, 3);

    return game;
  }
 @Override
 public MagicEvent executeTrigger(
     final MagicGame game, final MagicPermanent permanent, final MagicPlayer upkeepPlayer) {
   game.doAction(new ChangeCountersAction(permanent, MagicCounterType.Age, 1));
   final int amount = permanent.getCounters(MagicCounterType.Age);
   final StringBuilder totalCost = new StringBuilder();
   for (int i = 0; i < amount; i++) {
     totalCost.append(manaCost.toString());
   }
   return new MagicEvent(
       permanent,
       new MagicMayChoice(new MagicPayManaCostChoice(MagicManaCost.create(totalCost.toString()))),
       this,
       "PN may$ " + genDescription(amount) + " If he or she doesn't, sacrifice SN.");
 }
Пример #10
0
  public MagicGame getGame() {
    final MagicDuel duel = createDuel();
    final MagicGame game = duel.nextGame();
    game.setPhase(MagicMainPhase.getFirstInstance());
    final MagicPlayer player = game.getPlayer(0);
    final MagicPlayer opponent = game.getPlayer(1);

    MagicPlayer P = player;

    P.setLife(20);
    addToLibrary(P, "Plains", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    addToHand(P, "Dungeon Geists", 1);

    P = opponent;

    P.setLife(20);
    addToLibrary(P, "Plains", 10);
    createPermanent(P, "Rupture Spire", false, 8);
    createPermanent(P, "Serra Angel", false, 1);
    addToHand(P, "Act of Treason", 1);

    return game;
  }
 @Override
 public void executeEvent(final MagicGame game, final MagicEvent event) {
   game.doAction(new SacrificeAction(event.getPermanent()));
 }
Пример #12
0
 @Override
 public void executeEvent(final MagicGame game, final MagicEvent event) {
   game.doAction(new ChangeTurnPTAction(event.getRefPermanent(), 1, 1));
 }
Пример #13
0
 @Override
 public void executeEvent(final MagicGame game, final MagicEvent event) {
   game.doAction(
       ChangeCountersAction.Enters(event.getPermanent(), MagicCounterType.PlusOne, amount));
 }