Package mage.game.permanent

Examples of mage.game.permanent.PermanentToken.entersBattlefield()


  }

  public boolean putOntoBattlefield(Game game, UUID sourceId, UUID controllerId) {
    PermanentToken permanent = new PermanentToken(this, controllerId);
    game.getBattlefield().addPermanent(permanent);
    permanent.entersBattlefield(sourceId, game);
    game.applyEffects();
    game.fireEvent(new ZoneChangeEvent(permanent, controllerId, Zone.OUTSIDE, Zone.BATTLEFIELD));
    return true;
  }
View Full Code Here


                }
                this.lastAddedTokenIds.add(newToken.getId());
                this.lastAddedTokenId = newToken.getId();
                game.setScopeRelevant(true);
                game.applyEffects();
                newToken.entersBattlefield(sourceId, game, Zone.OUTSIDE, true);
                game.setScopeRelevant(false);
                game.applyEffects();
                game.fireEvent(new ZoneChangeEvent(newToken, controllerId, Zone.OUTSIDE, Zone.BATTLEFIELD));
                if (attacking && game.getCombat() != null) {
                    game.getCombat().addAttackingCreature(newToken.getId(), game);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.