Package mage.abilities

Examples of mage.abilities.TriggeredAbility.activate()


    //20091005 - 603.3c, 603.3d
    game.bookmarkState();
    TriggeredAbility ability = (TriggeredAbility) source.copy();
    if (ability.getTargets().canChoose(ability.getSourceId(), playerId, game)) {
      game.getStack().push(new StackAbility(ability, playerId));
      if (ability.activate(game, false)) {
        game.removeLastBookmark();
        return true;
      }
    }
    game.restoreState();
View Full Code Here


        TriggeredAbility ability = source.copy();
        if (ability != null && ability.canChooseTarget(game)) {           
            if (ability.isUsesStack()) {
                game.getStack().push(new StackAbility(ability, playerId));
            }
            if (ability.activate(game, false)) {
                if (ability.isUsesStack() || ability.getRuleVisible()) {
                    game.informPlayers(ability.getGameLogMessage(game));
                }
                if (!ability.isUsesStack()) {
                    ability.resolve(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.