Search in sources :

Example 1 with RagavanToken

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

the class KariZevSkyshipRaiderEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    CreateTokenEffect effect = new CreateTokenEffect(new RagavanToken(), 1, true, true);
    Player controller = game.getPlayer(source.getControllerId());
    if (controller != null && effect.apply(game, source)) {
        effect.exileTokensCreatedAtEndOfCombat(game, source);
        return true;
    }
    return false;
}
Also used : Player(mage.players.Player) RagavanToken(mage.game.permanent.token.RagavanToken) CreateTokenEffect(mage.abilities.effects.common.CreateTokenEffect)

Aggregations

CreateTokenEffect (mage.abilities.effects.common.CreateTokenEffect)1 RagavanToken (mage.game.permanent.token.RagavanToken)1 Player (mage.players.Player)1