Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.SacrificeSourceUnlessPaysEffect


        super(ownerId, 136, "Crosis's Catacombs", Rarity.UNCOMMON, new CardType[]{CardType.LAND}, "");
        this.expansionSetCode = "PLS";
        this.subtype.add("Lair");

        // When Crosis's Catacombs enters the battlefield, sacrifice it unless you return a non-Lair land you control to its owner's hand.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ReturnToHandTargetCost(new TargetControlledPermanent(filter)))));
        // {tap}: Add {U}, {B}, or {R} to your mana pool.
        this.addAbility(new BlueManaAbility());
        this.addAbility(new BlackManaAbility());
        this.addAbility(new RedManaAbility());
    }
View Full Code Here


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

        // When Balduvian Horde enters the battlefield, sacrifice it unless you discard a card at random.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new DiscardCardCost(true))));
    }
View Full Code Here

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

        // When Pillaging Horde enters the battlefield, sacrifice it unless you discard a card at random.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new DiscardCardCost(true))));
    }
View Full Code Here

        this.subtype.add("Spirit");
        this.color.setBlack(true);
        this.power = new MageInt(9);
        this.toughness = new MageInt(9);
        // At the beginning of your upkeep, sacrifice Kuro, Pitlord unless you pay {B}{B}{B}{B}.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{B}{B}{B}{B}")), TargetController.YOU, false));
        // Pay 1 life: Target creature gets -1/-1 until end of turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostTargetEffect(-1, -1, Duration.EndOfTurn), new PayLifeCost(1));
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

}

class MoltenTailMasticoreAbility extends TriggeredAbilityImpl {
    public MoltenTailMasticoreAbility() {
        super(Zone.BATTLEFIELD, new SacrificeSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand())));
    }
View Full Code Here

        this.toughness = new MageInt(7);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // At the beginning of your upkeep, sacrifice Nicol Bolas unless you pay {U}{B}{R}.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{U}{B}{R}")), TargetController.YOU, false));
       
        // Whenever Nicol Bolas deals damage to an opponent, that player discards his or her hand.
        this.addAbility(new DealsDamageToOpponentTriggeredAbility(new DiscardHandTargetEffect("that player"), false));
    }
View Full Code Here

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

        // At the beginning of your upkeep, sacrifice Krosan Cloudscraper unless you pay {G}{G}.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ManaCostsImpl("{G}{G}")), TargetController.YOU, false));

        // Morph {7}{G}{G}
        this.addAbility(new MorphAbility(this, new ManaCostsImpl("{7}{G}{G}")));
    }
View Full Code Here

        this.expansionSetCode = "RTR";

        // Transguild Promenade enters the battlefield tapped.
        this.addAbility(new EntersBattlefieldTappedAbility());
        // When Transguild Promenade enters the battlefield, sacrifice it unless you pay {1}.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new GenericManaCost(1))));
        // {T}: Add one mana of any color to your mana pool.
        this.addAbility(new AnyColorManaAbility());
    }
View Full Code Here

        // <i>({BR} can be paid with either {B} or {R}.)</i>
        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Avatar of Discord enters the battlefield, sacrifice it unless you discard two cards.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new DiscardTargetCost(new TargetCardInHand(2, new FilterCard("two cards"))))));
    }
View Full Code Here

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

        // Whenever Rotting Giant attacks or blocks, sacrifice it unless you exile a card from your graveyard.
        TargetCardInYourGraveyard target = new TargetCardInYourGraveyard();
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new SacrificeSourceUnlessPaysEffect(new ExileFromGraveCost(target)), false));
    }
View Full Code Here

TOP

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

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.