Examples of untap()


Examples of mage.game.permanent.Permanent.untap()

    public boolean apply(Game game, Ability source) {
        Permanent targetCreature = game.getPermanent(source.getFirstTarget());
        if (targetCreature != null) {
            source.getEffects().get(0).setTargetPointer(new FixedTarget(targetCreature.getId()));
            game.addEffect(new GainControlTargetEffect(Duration.EndOfTurn), source);
            targetCreature.untap(game);
            game.addEffect(new BoostTargetEffect(source.getManaCostsToPay().getX(), 0, Duration.EndOfTurn), source);
            game.addEffect(new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn), source);
            return true;
        }
        return false;
View Full Code Here

Examples of mage.game.permanent.Permanent.untap()

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getSourceId());
        Player player = game.getPlayer(game.getActivePlayerId());
        if (player != null && permanent != null) {
            permanent.untap(game);
            if (permanent.changeControllerId(player.getId(), game)) {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of mage.game.permanent.Permanent.untap()

    @Override
    public boolean apply(Game game, Ability source) {
        Permanent permanent = game.getPermanent(source.getFirstTarget());
        if (permanent != null) {
            game.addEffect(new BoostTargetEffect(0, 2, Duration.EndOfTurn), source);
            permanent.untap(game);
            return true;
        }
        return false;
    }
View Full Code Here

Examples of mage.players.Player.untap()

    super.beginStep(game, activePlayerId);
    Player activePlayer = game.getPlayer(activePlayerId);
    //20091005 - 502.1/703.4a
    activePlayer.phasing(game);
    //20091005 - 502.2/703.4b
    activePlayer.untap(game);
  }

  @Override
  public UntapStep copy() {
    return new UntapStep(this);
View Full Code Here

Examples of mage.players.Player.untap()

        super.beginStep(game, activePlayerId);
        Player activePlayer = game.getPlayer(activePlayerId);
        //20091005 - 502.1/703.4a
        activePlayer.phasing(game);
        //20091005 - 502.2/703.4b
        activePlayer.untap(game);
        game.applyEffects();
    }

    @Override
    public UntapStep copy() {
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.