use of mage.game.permanent.token.custom.CreatureToken in project mage by magefree.
the class MercurialTransformationEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player == null) {
return false;
}
Token token;
if (player.chooseUse(outcome, "1/1 Frog or 4/4 Octopus?", null, "Frog", "Octopus", source, game)) {
token = new CreatureToken(1, 1).withColor("U").withSubType(SubType.FROG);
} else {
token = new CreatureToken(4, 4).withColor("U").withSubType(SubType.OCTOPUS);
}
game.addEffect(new BecomesCreatureTargetEffect(token, true, false, Duration.EndOfTurn), source);
return true;
}
use of mage.game.permanent.token.custom.CreatureToken in project mage by magefree.
the class NissaOfShadowedBoughsCreatureEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player == null || !player.chooseUse(Outcome.BecomeCreature, "Have it become a creature?", source, game)) {
return false;
}
game.addEffect(new BecomesCreatureTargetEffect(new CreatureToken(3, 3, "", SubType.ELEMENTAL).withAbility(HasteAbility.getInstance()).withAbility(new MenaceAbility()), false, true, Duration.EndOfTurn), source);
return true;
}
use of mage.game.permanent.token.custom.CreatureToken in project mage by magefree.
the class CrawlingBarrensEffect method apply.
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player == null || !player.chooseUse(outcome, "Have this land become a 0/0 creature until end of turn?", source, game)) {
return false;
}
game.addEffect(new BecomesCreatureSourceEffect(new CreatureToken(0, 0, "0/0 Elemental creature").withSubType(SubType.ELEMENTAL), "land", Duration.EndOfTurn), source);
return true;
}
Aggregations