Package mage.abilities

Examples of mage.abilities.Mode


        this.addAbility(FlashAbility.getInstance());
        // When Deceiver Exarch enters the battlefield, choose one - Untap target permanent you control; or tap target permanent an opponent controls.
        Ability ability = new EntersBattlefieldTriggeredAbility(new UntapTargetEffect());
        ability.addTarget(new TargetControlledPermanent());
        Mode mode = new Mode();
        mode.getEffects().add(new TapTargetEffect());
        mode.getTargets().add(new TargetPermanent(filter));
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here


        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        Ability ability = new EntersBattlefieldTriggeredAbility(new BoostTargetEffect(2, 0, Duration.EndOfTurn), false);
        ability.addTarget(new TargetCreaturePermanent());
        Mode mode = new Mode();
        mode.getEffects().add(new BoostTargetEffect(0, -2, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
        Target target = new TargetCreaturePermanent(filter);
        this.getSpellAbility().addTarget(target);       
       
        // <strong>�</strong> Counter target spell unless its controller pays {3}.
        Mode mode = new Mode();
        mode.getEffects().add(new CounterUnlessPaysEffect(new GenericManaCost(3)));
        mode.getTargets().add(new TargetSpell());
        this.getSpellAbility().addMode(mode);
       
        // <strong>�</strong> Creatures with power 3 or less can't block this turn.
        mode = new Mode();
        mode.getEffects().add(new CantBlockAllEffect(filterCantBlock, Duration.EndOfTurn));
        this.getSpellAbility().addMode(mode);
       
    }
View Full Code Here

        // Choose one -
        // - Put target creature on top of its owner's library.
        this.getSpellAbility().addEffect(new PutOnLibraryTargetEffect(true));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        // - Jeskai Charm deals 4 damage to target opponent.
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(4));
        mode.getTargets().add(new TargetOpponent());
        this.getSpellAbility().addMode(mode);
        // - Creatures you control get +1/+1 and gain lifelink until end of turn.
        mode = new Mode();
        Effect effect = new BoostControlledEffect(1,1, Duration.EndOfTurn);
        effect.setText("Creatures you control get +1/+1");
        mode.getEffects().add(effect);
        effect = new GainAbilityControlledEffect(LifelinkAbility.getInstance(), Duration.EndOfTurn, new FilterControlledCreaturePermanent());
        effect.setText("and gain lifelink until end of turn");
        mode.getEffects().add(effect);
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // Choose one - Counter target red spell; or destroy target red 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

        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(1);
        // Creatures you control get +2/+2 until end of turn;
        this.getSpellAbility().addEffect(new BoostControlledEffect(2,2, Duration.EndOfTurn));
        // or until end of turn, creatures you control gain "Whenever this creature deals damage, you gain that much life."
        Mode mode = new Mode();
        Effect effect = new GainAbilityControlledEffect(new DealsDamageGainLifeSourceTriggeredAbility(), Duration.EndOfTurn);
        effect.setText("until end of turn, creatures you control gain \"Whenever this creature deals damage, you gain that much life.\"");
        mode.getEffects().add(effect);
        this.getSpellAbility().getModes().addMode(mode);

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

        // Choose one - Counter target spell if it's red;
        this.getSpellAbility().addEffect(new HydroblastCounterEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
       
        // or destroy target permanent if it's red.
        Mode mode = new Mode();
        mode.getEffects().add(new HydroblastDestroyEffect());
        mode.getTargets().add(new TargetPermanent());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // Choose one -
        // Search your library for up to two creature cards, reveal them, put them into your hand, then shuffle your library;
        this.getSpellAbility().addEffect(new SearchLibraryPutInHandEffect(new TargetCardInLibrary(0, 2, new FilterCreatureCard())));
        // or put up to two creature cards from your hand onto the battlefield.
        Mode mode = new Mode();
        mode.getEffects().add(new ToothAndNailPutCreatureOnBattlefieldEffect());
        this.getSpellAbility().getModes().addMode(mode);

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

        // Choose one - Creatures without flying can't block this turn;
        this.getSpellAbility().addEffect(new CantBlockAllEffect(filter, Duration.EndOfTurn));
       
        // or gain control of all permanents you own;
        Mode mode = new Mode();
        mode.getEffects().add(new GainControlAllEffect(Duration.EndOfGame, filter2));
        this.getSpellAbility().addMode(mode);
       
        // or Gruul Charm deals 3 damage to each creature with flying.
        Mode mode2 = new Mode();
        mode2.getEffects().add(new DamageAllEffect(3, filter3));
        this.getSpellAbility().addMode(mode2);
    }
View Full Code Here

        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        this.getSpellAbility().getModes().setMaxModes(1);
        this.getSpellAbility().getModes().setMaxModes(3);

        Mode mode1 = new Mode();
        mode1.getEffects().add(new DestroyTargetEffect());
        mode1.getTargets().add(new TargetPermanent(new FilterEnchantment()));
        this.getSpellAbility().addMode(mode1);

        Mode mode2 = new Mode();
        mode2.getEffects().add(new DestroyTargetEffect());
        mode2.getTargets().add(new TargetPermanent(new FilterLandPermanent()));
        this.getSpellAbility().addMode(mode2);
    }
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.