Search in sources :

Example 1 with SoldierVigilanceToken

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

the class FinaleOfGloryEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    int xValue = source.getManaCostsToPay().getX();
    if (xValue == 0) {
        return false;
    }
    new CreateTokenEffect(new SoldierVigilanceToken(), xValue).apply(game, source);
    if (xValue >= 10) {
        new CreateTokenEffect(new AngelVigilanceToken(), xValue).apply(game, source);
    }
    return true;
}
Also used : SoldierVigilanceToken(mage.game.permanent.token.SoldierVigilanceToken) CreateTokenEffect(mage.abilities.effects.common.CreateTokenEffect) AngelVigilanceToken(mage.game.permanent.token.AngelVigilanceToken)

Aggregations

CreateTokenEffect (mage.abilities.effects.common.CreateTokenEffect)1 AngelVigilanceToken (mage.game.permanent.token.AngelVigilanceToken)1 SoldierVigilanceToken (mage.game.permanent.token.SoldierVigilanceToken)1