Package mage.abilities

Examples of mage.abilities.Mode


        //Choose one - Target creature gets +3/+3 until end of turn
        this.getSpellAbility().addEffect(new BoostTargetEffect(3, 3, Duration.EndOfTurn));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        //permanents you control gain hexproof until end of turn
        Mode mode = new Mode();
        mode.getEffects().add(new GainAbilityAllEffect(HexproofAbility.getInstance(), Duration.EndOfTurn, new FilterControlledPermanent()));
        this.getSpellAbility().addMode(mode);
        //return target creature to its owner's hand.
        Mode mode2 = new Mode();
        mode2.getEffects().add(new ReturnToHandTargetEffect());
        mode2.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode2);
       
    }
View Full Code Here


        // Choose one - Destroy target artifact;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        Target target = new TargetArtifactPermanent();
        this.getSpellAbility().addTarget(target);
        // or destroy target enchantment;
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        target = new TargetPermanent(new FilterEnchantmentPermanent());
        mode.getTargets().add(target);
        this.getSpellAbility().addMode(mode);
        // or destroy target artifact and target enchantment.
        mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        target = new TargetArtifactPermanent();
        mode.getTargets().add(target);
        Effect effect = new DestroyTargetEffect();
        effect.setTargetPointer(new SecondTargetPointer());
        effect.setText("and target enchantment");
        mode.getEffects().add(effect);
        target = new TargetPermanent(new FilterEnchantmentPermanent());
        mode.getTargets().add(target);
        this.getSpellAbility().addMode(mode);


    }
View Full Code Here

        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(1);
        // Put a 5/5 green Beast creature token onto the battlefield;
        this.getSpellAbility().addEffect(new CreateTokenEffect(new OneDozenEyesBeastToken()));
        // or put five 1/1 green Insect creature tokens onto the battlefield.
        Mode mode = new Mode();
        mode.getEffects().add(new CreateTokenEffect(new InsectToken(),5));
        this.getSpellAbility().addMode(mode);
        // Entwine {G}{G}{G}
        this.addAbility(new EntwineAbility("{G}{G}{G}"));
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // When Entomber Exarch enters the battlefield, choose one - Return target creature card from your graveyard to your hand; or target opponent reveals his or her hand, you choose a noncreature card from it, then that player discards that card.
        Ability ability = new EntersBattlefieldTriggeredAbility(new ReturnToHandTargetEffect(), false);
        ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));
        Mode mode = new Mode();
        mode.getEffects().add(new EntomberExarchEffect());
        mode.getTargets().add(new TargetOpponent());
        ability.addMode(mode);
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(2);
        // Branching Bolt deals 3 damage to target creature with flying;
        this.getSpellAbility().addEffect(new DamageTargetEffect(3));
        this.getSpellAbility().addTarget(new TargetCreaturePermanent(filterFlying));
        // or Branching Bolt deals 3 damage to target creature without flying.
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(3));
        mode.getTargets().add(new TargetCreaturePermanent(filterNotFlying));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // Choose one - Destroy target blue permanent;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(filterBlue));
       
        // or return target Island to its owner's hand.
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetPermanent(filterIsland));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // Choose one - Destroy target enchantment;
        this.getSpellAbility().addEffect(new DestroyTargetEffect());
        this.getSpellAbility().addTarget(new TargetPermanent(filter));
        // or draw two cards;
        Mode mode = new Mode();
        mode.getEffects().add(new DrawCardSourceControllerEffect(2));
        this.getSpellAbility().addMode(mode);
        // or target player discards two cards.
        mode = new Mode();
        mode.getEffects().add(new DiscardTargetEffect(2));
        mode.getTargets().add(new TargetPlayer());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        // Choose one — Counter target noncreature spell unless its controller pays {2};
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
        this.getSpellAbility().getTargets().add(new TargetSpell(filter));

        // or Izzet Charm deals 2 damage to target creature;
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(2));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);

        //  or draw two cards, then discard two cards.
        mode = new Mode();
        mode.getEffects().add(new DrawDiscardControllerEffect(2, 2));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setWhite(true);

        // Choose one - Creatures you control get +2/+0 until end of turn; or creatures you control get +0/+2 until end of turn.
        this.getSpellAbility().addEffect(new BoostControlledEffect(2, 0, Duration.EndOfTurn));
        Mode mode = new Mode();
        mode.getEffects().add(new BoostControlledEffect(0, 2, Duration.EndOfTurn));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        effect.setText("and gains trample until end of turn");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().getTargets().add(new TargetCreaturePermanent());

        // or exile target creature with power 5 or greater;
        Mode mode = new Mode();
        mode.getEffects().add(new ExileTargetEffect());
        mode.getTargets().add(new TargetCreaturePermanent(filter));
        this.getSpellAbility().addMode(mode);

        // or put a 2/2 white Knight creature token with vigilance onto the battlefield.
        mode = new Mode();
        mode.getEffects().add(new CreateTokenEffect(new KnightToken()));
        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.