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;
}
Aggregations