Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.CounterUnlessPaysEffect


        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // {3}, Return a land you control to its owner's hand: Counter target spell unless its controller pays {3}.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(3)), new GenericManaCost(3));
        ability.addCost(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)));
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here


        toughness = new MageInt(4);

        // Remove a ki counter from Jaraku the Interloper: Counter target spell unless its controller pays {2}.
        Ability ability = new SimpleActivatedAbility(
                Zone.BATTLEFIELD,
                new CounterUnlessPaysEffect(new GenericManaCost(2)),
                new RemoveCountersSourceCost(CounterType.KI.createInstance()));
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "DGM";
        this.color.setBlue(true);

        // Counter target spell unless it's controller pays {6}.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(6)));

    }
View Full Code Here

        this.supertype.add("World");

        this.color.setBlack(true);

        // Whenever a player casts a spell, counter it unless that player pays {3}.
        this.addAbility(new SpellCastAllTriggeredAbility(new CounterUnlessPaysEffect(new GenericManaCost(3)), new FilterSpell("a spell"), false, true));
    }
View Full Code Here

        this.expansionSetCode = "CMD";

        this.color.setBlue(true);

        // Counter target instant or sorcery spell unless its controller pays {1}.
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new ManaCostsImpl("{1}")));
        this.getSpellAbility().addTarget(new TargetSpell(filter));
        // Storm
        this.addAbility(new StormAbility());
    }
View Full Code Here

        // You may return an Island you control to its owner's hand rather than pay Daze's mana cost.
        this.addAbility(new AlternativeCostSourceAbility(new ReturnToHandTargetCost(new TargetControlledPermanent(filter))));

        // Counter target spell unless its controller pays {1}.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(1)));
    }
View Full Code Here

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

        // 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));
View Full Code Here

        this.color.setBlue(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);

        // Tap an untapped Wizard you control: Counter target spell unless its controller pays {1}.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CounterUnlessPaysEffect(new GenericManaCost(1)), new TapTargetCost(new TargetControlledPermanent(filter)));
        ability.addTarget(new TargetSpell());
        this.addAbility(ability);
    }
View Full Code Here

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

        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(4)));
        this.getSpellAbility().addEffect(new GainLifeEffect(4));
    }
View Full Code Here

        this.color.setBlue(true);

        // Counter target spell unless its controller pays {2}.
        this.getSpellAbility().addTarget(new TargetSpell());
        this.getSpellAbility().addEffect(new CounterUnlessPaysEffect(new GenericManaCost(2)));
        // Storm
        this.addAbility(new StormAbility());
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.CounterUnlessPaysEffect

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.