Package mage.abilities

Examples of mage.abilities.Mode


        // At the beginning of your upkeep, choose one - Put a +1/+1 counter on target artifact creature;
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new AddCountersTargetEffect(CounterType.P1P1.createInstance(), Outcome.BoostCreature), TargetController.YOU, false);
        ability.addTarget(new TargetPermanent(filter));

        // or put a charge counter on target noncreature artifact.
        Mode mode = new Mode();
        mode.getEffects().add(new AddCountersTargetEffect(CounterType.CHARGE.createInstance(), Outcome.BoostCreature));
        mode.getTargets().add(new TargetPermanent(filter2));
        ability.addMode(mode);

        this.addAbility(ability);

    }
View Full Code Here


       
        //Return target creature card from your graveyard to your hand;
        this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
        // and/or return target enchantment card from your graveyard to your hand.
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnFromGraveyardToHandTargetEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(filterCard));
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

        // Choose one - Counter target blue spell; or destroy target blue permanent.
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell(filterSpell));
       
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(filterPermanent));
       
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // *Exile target creature with power 3 or greater
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addEffect(new ExileTargetEffect());

        // *You draw two cards and you lose 2 life
        Mode mode = new Mode();
        mode.getEffects().add(new DrawCardSourceControllerEffect(2));
        mode.getEffects().add(new LoseLifeSourceControllerEffect(2));
        this.getSpellAbility().addMode(mode);

        // *Distribute two +1/+1 counters among one or two target creatures.
        mode = new Mode();
        mode.getEffects().add(new AbzanCharmDistributeEffect());
        mode.getTargets().add(new TargetCreaturePermanentAmount(2));
        this.getSpellAbility().addMode(mode);

    }
View Full Code Here

        // Choose one - Return target creature card from your graveyard to your hand
        this.getSpellAbility().addEffect(new ReturnToHandTargetEffect());
        this.getSpellAbility().addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
        // or return two target Zombie cards from your graveyard to your hand.
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(2, filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(1);
        // Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        // or target creature gets +1/+1 and gains trample until end of turn;
        Mode mode = new Mode();
        Effect effect = new BoostTargetEffect(1,1, Duration.EndOfTurn);
        effect.setText("target creature gets +1/+1");
        mode.getEffects().add(effect);
        effect = new GainAbilityTargetEffect(TrampleAbility.getInstance(),Duration.EndOfTurn);
        effect.setText("and gains trample until end of turn");
        mode.getEffects().add(effect);
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().getModes().addMode(mode);
        // or remove two time counters from target permanent or suspended card.
        mode = new Mode();
        Choice targetChoice = new ChoiceImpl();
        targetChoice.setMessage("Choose what to target");
        targetChoice.getChoices().add("Permanent");
        targetChoice.getChoices().add("Suspended Card");
        mode.getChoices().add(targetChoice);
        mode.getEffects().add(new FuryCharmRemoveCounterEffect());
        this.getSpellAbility().getModes().addMode(mode);



    }
View Full Code Here

                new AddCountersTargetEffect(CounterType.P1P1.createInstance()),
                new ManaCostsImpl("{1}{G}"));
        ability.addTarget(new TargetCreaturePermanent());
        ability.addCost(new TapSourceCost());
        // or Bow of Nylea deals 2 damage to target creature with flying;
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(2));
        Target target = new TargetCreaturePermanent(filterFlying);
        mode.getTargets().add(target);
        ability.addMode(mode);
        // or you gain 3 life;
        mode = new Mode();
        mode.getEffects().add(new GainLifeEffect(3));
        ability.addMode(mode);
        // or put up to four target cards from your graveyard on the bottom of your library in any order.
        mode = new Mode();
        mode.getEffects().add(new PutCardsFromGraveyardToLibraryEffect());
        mode.getTargets().add(new TargetCardInYourGraveyard(0,4, new FilterCard()));
        ability.addMode(mode);

        this.addAbility(ability);

    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(2);
        // Target player gains 7 life;
        this.getSpellAbility().addEffect(new GainLifeTargetEffect(7));
        this.getSpellAbility().addTarget(new TargetPlayer());
        // or put target noncreature permanent on top of its owner's library;
        Mode mode = new Mode();
        mode.getEffects().add(new PutOnLibraryTargetEffect(true));
        Target target = new TargetPermanent(filterNonCreature);
        mode.getTargets().add(target);
        this.getSpellAbility().getModes().addMode(mode);
        // or target player shuffles his or her graveyard into his or her library;
        mode = new Mode();
        mode.getEffects().add(new PrimalCommandShuffleGraveyardEffect());
        mode.getTargets().add(new TargetPlayer());
        this.getSpellAbility().getModes().addMode(mode);       
        // or search your library for a creature card, reveal it, put it into your hand, then shuffle your library.
        mode = new Mode();
        mode.getEffects().add(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(new FilterCreatureCard()), true, true));
        this.getSpellAbility().getModes().addMode(mode);
       
    }
View Full Code Here

        // Choose one - Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        // or put target creature on the bottom of its owner's library;
        Mode mode = new Mode();
        mode.getEffects().add(new PutOnLibraryTargetEffect(false));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
        // or counter target instant spell.
        mode = new Mode();
        mode.getEffects().add(new CounterTargetEffect());
        mode.getTargets().add(new TargetSpell(filter));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setWhite(true);

        // Choose one - Exile all artifacts
        this.getSpellAbility().addEffect(new ExileAllEffect(new FilterArtifactPermanent("artifacts")));
        // or exile all creatures
        Mode mode = new Mode();
        mode.getEffects().add(new ExileAllEffect(new FilterCreaturePermanent("creatures")));
        this.getSpellAbility().addMode(mode);
        // or exile all enchantments
        Mode mode2 = new Mode();
        mode2.getEffects().add(new ExileAllEffect(new FilterEnchantmentPermanent("enchantments")));
        this.getSpellAbility().addMode(mode2);
        // or exile all planeswalkers.
        Mode mode3 = new Mode();
        mode3.getEffects().add(new ExileAllEffect(new FilterPlaneswalkerPermanent("planeswalkers")));
        this.getSpellAbility().addMode(mode3);
    }
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.