Search in sources :

Example 1 with SpyMasterGoblinToken

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

the class SpyMasterGoblinCreateTokenEffect method apply.

@Override
public boolean apply(Game game, Ability source) {
    Player player = game.getPlayer(game.getActivePlayerId());
    if (player != null) {
        Token token = new SpyMasterGoblinToken();
        token.putOntoBattlefield(1, game, source, player.getId());
    }
    return true;
}
Also used : Player(mage.players.Player) Token(mage.game.permanent.token.Token) SpyMasterGoblinToken(mage.game.permanent.token.SpyMasterGoblinToken) SpyMasterGoblinToken(mage.game.permanent.token.SpyMasterGoblinToken)

Aggregations

SpyMasterGoblinToken (mage.game.permanent.token.SpyMasterGoblinToken)1 Token (mage.game.permanent.token.Token)1 Player (mage.players.Player)1