Search in sources :

Example 6 with CreatureToken

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;
}
Also used : Player(mage.players.Player) BecomesCreatureTargetEffect(mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect) CreatureToken(mage.game.permanent.token.custom.CreatureToken) Token(mage.game.permanent.token.Token) CreatureToken(mage.game.permanent.token.custom.CreatureToken)

Example 7 with CreatureToken

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;
}
Also used : Player(mage.players.Player) MenaceAbility(mage.abilities.keyword.MenaceAbility) BecomesCreatureTargetEffect(mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect) CreatureToken(mage.game.permanent.token.custom.CreatureToken)

Example 8 with CreatureToken

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;
}
Also used : Player(mage.players.Player) BecomesCreatureSourceEffect(mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect) CreatureToken(mage.game.permanent.token.custom.CreatureToken)

Aggregations

CreatureToken (mage.game.permanent.token.custom.CreatureToken)8 Player (mage.players.Player)5 BecomesCreatureSourceEffect (mage.abilities.effects.common.continuous.BecomesCreatureSourceEffect)3 BecomesCreatureTargetEffect (mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect)3 FilterPermanent (mage.filter.FilterPermanent)2 Token (mage.game.permanent.token.Token)2 BecomesCreatureAllEffect (mage.abilities.effects.common.continuous.BecomesCreatureAllEffect)1 ValueHint (mage.abilities.hint.ValueHint)1 MenaceAbility (mage.abilities.keyword.MenaceAbility)1 Card (mage.cards.Card)1 ExpansionSet (mage.cards.ExpansionSet)1 CardCriteria (mage.cards.repository.CardCriteria)1 CardInfo (mage.cards.repository.CardInfo)1 FilterLandPermanent (mage.filter.common.FilterLandPermanent)1 ControllerIdPredicate (mage.filter.predicate.permanent.ControllerIdPredicate)1 Permanent (mage.game.permanent.Permanent)1 EmptyToken (mage.game.permanent.token.EmptyToken)1 TargetPermanent (mage.target.TargetPermanent)1 TargetPlayer (mage.target.TargetPlayer)1