Package mage.abilities

Examples of mage.abilities.Mode


        // {1}, Remove a +1/+1 counter from Ulasht: Choose one - Ulasht deals 1 damage to target creature;
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new GenericManaCost(1));
        ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance()));
        ability.addTarget(new TargetCreaturePermanent());
        // or put a 1/1 green Saproling creature token onto the battlefield.
        Mode mode = new Mode();
        Effect effect = new CreateTokenEffect(new SaprolingToken());
        effect.setText("Put a 1/1 green Saproling creature token onto the battlefield.");
        mode.getEffects().add(effect);
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here


        this.color.setGreen(true);

        // Choose one - Destroy target creature with flying; or destroy target artifact.
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Mode mode = new Mode();
        mode.getTargets().add(new TargetArtifactPermanent());
        mode.getEffects().add(new DestroyTargetEffect());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setRed(true);
        this.color.setBlue(true);

        this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(new ManacostVariableValue()));
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(new ManacostVariableValue()));
        mode.getTargets().add(new TargetCreatureOrPlayer());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMinModes(2);
        this.getSpellAbility().getModes().setMaxModes(2);
        // Destroy all artifacts;
        this.getSpellAbility().addEffect(new DestroyAllEffect(new FilterArtifactPermanent("artifacts")));
        // or destroy all enchantments;
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(new FilterEnchantmentPermanent("enchantments")));
        this.getSpellAbility().getModes().addMode(mode);
        // or destroy all creatures with converted mana cost 3 or less;
        mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(filter3orLess));
        this.getSpellAbility().getModes().addMode(mode);
        // or destroy all creatures with converted mana cost 4 or greater.
        mode = new Mode();
        mode.getEffects().add(new DestroyAllEffect(filter4orMore));
        this.getSpellAbility().getModes().addMode(mode);
    }
View Full Code Here

        // At the beginning of your upkeep, choose one - You gain 2 life; or look at the top card of your library, then you may put that card into your graveyard; or each opponent loses 1 life.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new GainLifeEffect(2), TargetController.YOU, false);

        // or look at the top card of your library, then you may put that card into your graveyard;
        Mode mode = new Mode();
        mode.getEffects().add(new EtherwroughtPageEffect());
        ability.addMode(mode);

        // or each opponent loses 1 life
        Mode mode1 = new Mode();
        mode1.getEffects().add(new LoseLifeOpponentsEffect(1));
        ability.addMode(mode1);
       
        this.addAbility(ability);

    }
View Full Code Here

        // Counter target creature spell;
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filter));
       
        // and/or return target creature card from your graveyard to your hand.
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnFromGraveyardToHandTargetEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(filter2));
        this.getSpellAbility().addMode(mode);
       
    }
View Full Code Here

        this.color.setBlack(true);
        this.color.setWhite(true);

        // Choose one - You gain 5 life; or counter target spell; or target creature gets -2/-2 until end of turn.
        this.getSpellAbility().addEffect(new GainLifeEffect(5));
        Mode mode = new Mode();
        mode.getEffects().add(new CounterTargetEffect());
        mode.getTargets().add(new TargetSpell());
        this.getSpellAbility().addMode(mode);
        mode = new Mode();
        mode.getEffects().add(new BoostTargetEffect(-2, -2, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);

        Ability ability = new EntersBattlefieldTriggeredAbility(new BrutalizerExarchEffect1());
        Mode mode = new Mode();
        mode.getEffects().add(new BrutalizerExarchEffect2());
        mode.getTargets().add(new TargetPermanent(filter));
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(1);
        // Untap all lands you control;
        this.getSpellAbility().addEffect(new UntapAllLandsControllerEffect());
        // or until end of turn, lands you control become 2/2 creatures that are still lands.
        Mode mode = new Mode();
        mode.getEffects().add(new BecomesCreatureAllEffect(new RudeAwakeningToken(), "lands", new FilterControlledLandPermanent("lands you control"), Duration.EndOfTurn));
        this.getSpellAbility().getModes().addMode(mode);

        // Entwine {2}{G}
        this.addAbility(new EntwineAbility("{2}{G}"));
    }
View Full Code Here

        this.color.setBlack(true);

        // Choose one - Target player discards two cards; or target player reveals his or her hand, you choose a card from it, then that player discards that card.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new DiscardTargetEffect(2));
        Mode mode = new Mode();
        mode.getEffects().add(new SplittingHeadacheEffect());
        mode.getTargets().add(new TargetPlayer());
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

TOP

Related Classes of mage.abilities.Mode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.