Package mage.abilities

Examples of mage.abilities.Mode


        this.toughness = new MageInt(1);

        // Haunt
        // When Orzhov Pontiff enters the battlefield or the creature it haunts dies, choose one - Creatures you control get +1/+1 until end of turn; or creatures you don't control get -1/-1 until end of turn.
        Ability ability = new HauntAbility(this, new BoostAllEffect(1,1, Duration.EndOfTurn, filterControlled, false));
        Mode mode = new Mode();
        mode.getEffects().add(new BoostAllEffect(-1,-1, Duration.EndOfTurn, filterNotControlled, false));
        ability.addMode(mode);
        this.addAbility(ability);

    }
View Full Code Here


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

        this.color.setBlack(true);

        // Choose one - Target player discards a card; or target creature gets +2/-1 until end of turn; or target creature gains swampwalk until end of turn.
        this.getSpellAbility().addEffect(new DiscardTargetEffect(1));
        this.getSpellAbility().addTarget(new TargetPlayer());
        Mode mode = new Mode();
        mode.getEffects().add(new BoostTargetEffect(2, -1, Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
        mode = new Mode();
        mode.getEffects().add(new GainAbilityTargetEffect(new SwampwalkAbility(), Duration.EndOfTurn));
        mode.getTargets().add(new TargetCreaturePermanent());
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMinModes(1);
        this.getSpellAbility().getModes().setMaxModes(1);
        // Sacrifice any number of creatures, then you gain 3 life for each sacrificed creature;
        this.getSpellAbility().addEffect(new PlungeIntoDarknessLifeEffect());
        // or pay X life, then look at the top X cards of your library, put one of those cards into your hand, and exile the rest.
        Mode mode = new Mode();
        mode.getEffects().add(new PlungeIntoDarknessSearchEffect());
        this.getSpellAbility().getModes().addMode(mode);
       
        // Entwine {B}
        this.addAbility(new EntwineAbility("{B}"));
    }
View Full Code Here

    public HurlyBurly(UUID ownerId) {
        super(ownerId, 177, "Hurly-Burly", Rarity.COMMON, new CardType[]{CardType.SORCERY}, "{1}{R}");
        this.expansionSetCode = "LRW";
        this.color.setRed(true);
        this.getSpellAbility().addEffect(new DamageAllEffect(1, filterWithFlying));
        Mode mode = new Mode();
        mode.getEffects().add(new DamageAllEffect(1, filterWithoutFlying));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.getSpellAbility().getModes().setMaxModes(2);
        // Counter target spell;
        this.getSpellAbility().addEffect(new CounterTargetEffect());
        this.getSpellAbility().addTarget(new TargetSpell());
        // or return target permanent to its owner's hand;
        Mode mode = new Mode();
        mode.getEffects().add(new ReturnToHandTargetEffect());
        mode.getTargets().add(new TargetPermanent());
        this.getSpellAbility().getModes().addMode(mode);
        // or tap all creatures your opponents control;
        mode = new Mode();
        mode.getEffects().add(new CrypticCommandEffect());
        this.getSpellAbility().getModes().addMode(mode);
        // or draw a card.
        mode = new Mode();
        mode.getEffects().add(new DrawCardSourceControllerEffect(1));
        this.getSpellAbility().getModes().addMode(mode);
    }
View Full Code Here

        // Choose one — All creatures get -1/-1 until end of turn;
        this.getSpellAbility().addEffect(new BoostAllEffect(-1,-1, Duration.EndOfTurn,new FilterCreaturePermanent("All creatures"), false));

        // or destroy target enchantment;
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetPermanent(new FilterEnchantment()));
        this.getSpellAbility().addMode(mode);

        // or regenerate each creature you control.
        mode = new Mode();
        mode.getEffects().add(new RegenerateAllEffect(new FilterControlledCreaturePermanent()));
        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 destroy target land.
        Mode mode = new Mode();
        mode.getEffects().add(new DestroyTargetEffect());
        mode.getTargets().add(new TargetLandPermanent());
        this.getSpellAbility().getModes().addMode(mode);
        // Entwine {3}{R}
        this.addAbility(new EntwineAbility("{3}{R}"));
    }
View Full Code Here

        this.color.setWhite(true);

        // Choose one - Tap all Spirits; or tap all non-Spirit creatures.
        this.getSpellAbility().addEffect(new TapAllEffect(filterSpirit));
       
        Mode mode = new Mode();
        mode.getEffects().add(new TapAllEffect(filterNonSpirit));
        this.getSpellAbility().addMode(mode);
    }
View Full Code Here

        this.color.setRed(true);

        // Choose one - Parch deals 2 damage to target creature or player; or Parch deals 4 damage to target blue creature.
        this.getSpellAbility().addEffect(new DamageTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetCreatureOrPlayer());
        Mode mode = new Mode();
        mode.getEffects().add(new DamageTargetEffect(4));
        mode.getTargets().add(new TargetCreaturePermanent(filter));
        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.