use of mage.game.permanent.token.OozeToken in project mage by magefree.
the class GelatinousGenesisEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
int count = source.getManaCostsToPay().getX();
OozeToken oozeToken = new OozeToken();
oozeToken.getPower().modifyBaseValue(count);
oozeToken.getToughness().modifyBaseValue(count);
oozeToken.putOntoBattlefield(count, game, source, source.getControllerId());
return true;
}
use of mage.game.permanent.token.OozeToken in project mage by magefree.
the class SlimeMoldingEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
int count = source.getManaCostsToPay().getX();
OozeToken oozeToken = new OozeToken();
oozeToken.getPower().modifyBaseValue(count);
oozeToken.getToughness().modifyBaseValue(count);
oozeToken.putOntoBattlefield(1, game, source, source.getControllerId());
return true;
}
use of mage.game.permanent.token.OozeToken in project mage by magefree.
the class MimingSlimeEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
List<Permanent> creatures = game.getBattlefield().getAllActivePermanents(StaticFilters.FILTER_PERMANENT_CREATURES, player.getId(), game);
int amount = 0;
for (Permanent creature : creatures) {
int power = creature.getPower().getValue();
if (amount < power) {
amount = power;
}
}
OozeToken oozeToken = new OozeToken();
oozeToken.getPower().modifyBaseValue(amount);
oozeToken.getToughness().modifyBaseValue(amount);
oozeToken.putOntoBattlefield(1, game, source, source.getControllerId());
return true;
}
return false;
}