Search in sources :

Example 1 with SatyrCantBlockToken

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

the class AnaxHardenedInTheForgeTriggeredAbility method checkTrigger.

@Override
public boolean checkTrigger(GameEvent event, Game game) {
    if (super.checkTrigger(event, game)) {
        int tokenCount = ((ZoneChangeEvent) event).getTarget().getPower().getValue() > 3 ? 2 : 1;
        this.getEffects().clear();
        this.addEffect(new CreateTokenEffect(new SatyrCantBlockToken(), tokenCount));
        return true;
    }
    return false;
}
Also used : SatyrCantBlockToken(mage.game.permanent.token.SatyrCantBlockToken) ZoneChangeEvent(mage.game.events.ZoneChangeEvent) CreateTokenEffect(mage.abilities.effects.common.CreateTokenEffect)

Aggregations

CreateTokenEffect (mage.abilities.effects.common.CreateTokenEffect)1 ZoneChangeEvent (mage.game.events.ZoneChangeEvent)1 SatyrCantBlockToken (mage.game.permanent.token.SatyrCantBlockToken)1