use of mage.game.permanent.token.SaprolingToken in project mage by magefree.
the class MorbidBloomEffect 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;
}
player.moveCards(card, Zone.EXILED, source, game);
int toughness = card.getToughness().getValue();
if (toughness < 1) {
return true;
}
return new SaprolingToken().putOntoBattlefield(toughness, game, source, player.getId());
}
use of mage.game.permanent.token.SaprolingToken in project mage by magefree.
the class SarpadianEmpiresCreateSelectedTokenEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
String tokenType = game.getState().getValue(source.getSourceId().toString() + "_SarpadianEmpiresVolVii").toString();
Token token;
switch(tokenType) {
case "White Citizen":
token = new CitizenToken();
break;
case "Blue Camarid":
token = new CamaridToken();
break;
case "Black Thrull":
token = new ThrullToken();
break;
case "Red Goblin":
token = new GoblinToken();
break;
default:
token = new SaprolingToken();
break;
}
token.putOntoBattlefield(1, game, source, source.getControllerId());
return true;
}
Aggregations