Examples of SacrificeEffect


Examples of mage.abilities.effects.common.SacrificeEffect

        // Kicker {B} (You may pay an additional {B} as you cast this spell.)
        this.addAbility(new KickerAbility("{B}"));

        // When Gatekeeper of Malakir enters the battlefield, if it was kicked, target player sacrifices a creature.
        EntersBattlefieldTriggeredAbility ability =
                new EntersBattlefieldTriggeredAbility(new SacrificeEffect(filter, 1, "target player"));
        Ability conditionalAbility = new ConditionalTriggeredAbility(ability, KickedCondition.getInstance(), "When {this} enters the battlefield, if it was kicked, target player sacrifices a creature.");
        conditionalAbility.addTarget(new TargetPlayer());
        this.addAbility(conditionalAbility);
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        // Target player loses 1 life, discards a card, then sacrifices a permanent.
        this.getSpellAbility().addTarget(new TargetPlayer());
        this.getSpellAbility().addEffect(new LoseLifeTargetEffect(1));
        this.getSpellAbility().addEffect(new DiscardTargetEffect(1));
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterPermanent(),1,"then that player"));

        // Cipher (Then you may exile this spell card encoded on a creature you control. Whenever that creature deals combat damage to a player, its controller may cast a copy of the encoded card without paying its mana cost.)
        this.getSpellAbility().addEffect(new CipherEffect());

    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        this.toughness = new MageInt(3);

        this.addAbility(FlyingAbility.getInstance());

        // At the beginning of your upkeep, sacrifice a creature other than Demonic Taskmaster.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new SacrificeEffect(filter, 1, ""), TargetController.YOU, false);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        this.expansionSetCode = "M12";

        this.color.setBlack(true);

        // At the beginning of each player's upkeep, that player sacrifices a non-Zombie creature.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new SacrificeEffect(filter, 1, "that player "), TargetController.ANY, false);
        this.addAbility(ability);
        // At the beginning of the end step, if no creatures are on the battlefield, sacrifice Call to the Grave.
        TriggeredAbility triggered = new OnEventTriggeredAbility(GameEvent.EventType.END_TURN_STEP_PRE, "beginning of the end step", true, new SacrificeSourceEffect());
        this.addAbility(new ConditionalTriggeredAbility(triggered, new NoCreatureCondition(), ruleText));
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Tribute 2</i>
        this.addAbility(new TributeAbility(2));
        // When Shrike Harpy enters the battlefield, if tribute wasn't paid, target opponent sacrifices a creature.
        TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new SacrificeEffect(new FilterCreaturePermanent("a creature"), 1, "target opponent"), false);
        ability.addTarget(new TargetOpponent());
        this.addAbility(new ConditionalTriggeredAbility(ability, TributeNotPaidCondition.getInstance(),
                "When {this} enters the battlefield, if its tribute wasn't paid, target opponent sacrifices a creature."));
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        // +1: Each player discards a card.
        this.addAbility(new LoyaltyAbility(new DiscardEachPlayerEffect(), 1));
       
        // -2: Target player sacrifices a creature.
        LoyaltyAbility ability = new LoyaltyAbility(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target player"), -2);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
        // -6: Separate all permanents target player controls into two piles. That player sacrifices all permanents in the pile of his or her choice.
        ability = new LoyaltyAbility(new LilianaOfTheVeilEffect(), -6);
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

    public DiabolicEdict(UUID ownerId) {
        super(ownerId, 22, "Diabolic Edict", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{B}");
        this.expansionSetCode = "TMP";
        this.color.setBlack(true);
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target player"));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        this.subtype.add("Slug");
        this.subtype.add("Beast");
        this.color.setGreen(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(6);
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new SacrificeEffect(filter, 1, "that player"), TargetController.ANY, false);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

        this.expansionSetCode = "M14";

        this.color.setWhite(true);

        // Target player sacrifices an attacking or blocking creature.
        this.getSpellAbility().addEffect(new SacrificeEffect(filter, 1, "Target player"));
        this.getSpellAbility().addTarget(new TargetPlayer());

    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeEffect

* Emblem: "At the beginning of each opponent's upkeep, that player sacrifices a creature."
*/
class SorinEmblem extends Emblem {
    public SorinEmblem() {
        this.setName("EMBLEM: Sorin, Solemn Visitor");
        Ability ability = new BeginningOfUpkeepTriggeredAbility(Zone.COMMAND, new SacrificeEffect(new FilterCreaturePermanent(),1 ,"that player"), TargetController.OPPONENT, false, true);
        this.getAbilities().add(ability);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.