Search in sources :

Example 1 with MarathWillOfTheWildElementalToken

use of mage.game.permanent.token.MarathWillOfTheWildElementalToken in project mage by magefree.

the class MarathWillOfTheWildRemoveCountersCost method apply.

@Override
public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    if (player != null) {
        int amount = ManacostVariableValue.REGULAR.calculate(game, source, this);
        Token token = new MarathWillOfTheWildElementalToken();
        token.getPower().modifyBaseValue(amount);
        token.getToughness().modifyBaseValue(amount);
        token.putOntoBattlefield(1, game, source, source.getControllerId());
        return true;
    }
    return false;
}
Also used : Player(mage.players.Player) Token(mage.game.permanent.token.Token) MarathWillOfTheWildElementalToken(mage.game.permanent.token.MarathWillOfTheWildElementalToken) MarathWillOfTheWildElementalToken(mage.game.permanent.token.MarathWillOfTheWildElementalToken)

Aggregations

MarathWillOfTheWildElementalToken (mage.game.permanent.token.MarathWillOfTheWildElementalToken)1 Token (mage.game.permanent.token.Token)1 Player (mage.players.Player)1