Search in sources :

Example 1 with WhiteBlackSpiritToken

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

the class EtherealAbsolutionEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(source.getControllerId());
    Card card = game.getCard(source.getFirstTarget());
    if (player == null || card == null) {
        return false;
    }
    if (card.isCreature(game)) {
        new CreateTokenEffect(new WhiteBlackSpiritToken()).apply(game, source);
    }
    return player.moveCards(card, Zone.EXILED, source, game);
}
Also used : Player(mage.players.Player) CreateTokenEffect(mage.abilities.effects.common.CreateTokenEffect) WhiteBlackSpiritToken(mage.game.permanent.token.WhiteBlackSpiritToken) Card(mage.cards.Card)

Aggregations

CreateTokenEffect (mage.abilities.effects.common.CreateTokenEffect)1 Card (mage.cards.Card)1 WhiteBlackSpiritToken (mage.game.permanent.token.WhiteBlackSpiritToken)1 Player (mage.players.Player)1