Search in sources :

Example 1 with OozeToken

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;
}
Also used : OozeToken(mage.game.permanent.token.OozeToken)

Example 2 with OozeToken

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;
}
Also used : OozeToken(mage.game.permanent.token.OozeToken)

Example 3 with OozeToken

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;
}
Also used : Player(mage.players.Player) Permanent(mage.game.permanent.Permanent) OozeToken(mage.game.permanent.token.OozeToken)

Aggregations

OozeToken (mage.game.permanent.token.OozeToken)3 Permanent (mage.game.permanent.Permanent)1 Player (mage.players.Player)1