Search in sources :

Example 1 with GrismoldPlantToken

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

the class GrismoldTheDreadsowerEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    game.getState().getPlayersInRange(source.getControllerId(), game).stream().forEach(playerId -> {
        Effect effect = new CreateTokenTargetEffect(new GrismoldPlantToken(), 1);
        effect.setTargetPointer(new FixedTarget(playerId, game));
        effect.apply(game, source);
    });
    return true;
}
Also used : GrismoldPlantToken(mage.game.permanent.token.GrismoldPlantToken) FixedTarget(mage.target.targetpointer.FixedTarget) CreateTokenTargetEffect(mage.abilities.effects.common.CreateTokenTargetEffect) OneShotEffect(mage.abilities.effects.OneShotEffect) CreateTokenTargetEffect(mage.abilities.effects.common.CreateTokenTargetEffect) AddCountersSourceEffect(mage.abilities.effects.common.counter.AddCountersSourceEffect) Effect(mage.abilities.effects.Effect)

Aggregations

Effect (mage.abilities.effects.Effect)1 OneShotEffect (mage.abilities.effects.OneShotEffect)1 CreateTokenTargetEffect (mage.abilities.effects.common.CreateTokenTargetEffect)1 AddCountersSourceEffect (mage.abilities.effects.common.counter.AddCountersSourceEffect)1 GrismoldPlantToken (mage.game.permanent.token.GrismoldPlantToken)1 FixedTarget (mage.target.targetpointer.FixedTarget)1