Package mage.abilities.common

Examples of mage.abilities.common.SpellCastAllTriggeredAbility


        this.color.setWhite(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a white spell, you may pay {1}. If you do, you gain 1 life.
        this.addAbility(new SpellCastAllTriggeredAbility(new DoIfCostPaid(new GainLifeEffect(1), new ManaCostsImpl("{1}")), filter, true));
       
    }
View Full Code Here


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

        // Whenever a player casts a blue spell, you may pay {1}. If you do, target player puts the top two cards of his or her library into his or her graveyard.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new PutLibraryIntoGraveTargetEffect(2), new ManaCostsImpl("{1}")), filter, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a green spell, you may pay {1}. If you do, target creature gets +1/+1 until end of turn.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new BoostTargetEffect(1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}")), filter, false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

    public HornOfPlenty(UUID ownerId) {
        super(ownerId, 298, "Horn of Plenty", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{6}");
        this.expansionSetCode = "MMQ";

        // Whenever a player casts a spell, he or she may pay {1}. If that player does, he or she draws a card at the beginning of the next end step.
        this.addAbility(new SpellCastAllTriggeredAbility(new HornOfPlentyEffect(), new FilterSpell("a spell"), false, true));
    }
View Full Code Here

        this.color.setBlack(true);
        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        // Whenever a player casts a black spell, you may pay {1}. If you do, target player loses 1 life.
        Ability ability = new SpellCastAllTriggeredAbility(new DoIfCostPaid(new LoseLifeTargetEffect(1), new ManaCostsImpl("{1}")), filter, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
    }
View Full Code Here

        this.color.setRed(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(4);

        // Whenever a player casts a spell, tap Ogre Recluse.
        this.addAbility(new SpellCastAllTriggeredAbility(new TapSourceEffect(), false));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever a player casts a spell, you lose 1 life.
        this.addAbility(new SpellCastAllTriggeredAbility(new LoseLifeSourceControllerEffect(1), false));
    }
View Full Code Here

        this.toughness = new MageInt(8);

        // Fear
        this.addAbility(FearAbility.getInstance());
        // Whenever a player casts a spell, sacrifice a creature.
        this.addAbility(new SpellCastAllTriggeredAbility(new SacrificeControllerEffect(new FilterCreaturePermanent(), 1, ""), false));
    }
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.supertype.add("World");

        this.color.setBlue(true);

        // Whenever a player casts an instant spell, counter it unless that player pays {X}, where X is its converted mana cost.
        this.addAbility(new SpellCastAllTriggeredAbility(Zone.BATTLEFIELD, new InTheEyeOfChaosEffect(), filter, false, true));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.SpellCastAllTriggeredAbility

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.