Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.SacrificeEffect


        // Ends
        // Target player sacrifices two attacking creatures.
        getRightHalfCard().getColor().setRed(true);
        getRightHalfCard().getColor().setWhite(true);
        getRightHalfCard().getSpellAbility().addEffect(new SacrificeEffect(new FilterAttackingCreature(), 2, "Target player"));
        getRightHalfCard().getSpellAbility().addTarget(new TargetPlayer());

    }
View Full Code Here


        this.addAbility(ability);
        // -9: Nicol Bolas, Planeswalker deals 7 damage to target player. That player discards seven cards, then sacrifices seven permanents.
        ability = new LoyaltyAbility(new DamageTargetEffect(7), -9);
        ability.addTarget(new TargetPlayer());
        ability.addEffect(new DiscardTargetEffect(7));
        ability.addEffect(new SacrificeEffect(new FilterPermanent(), 7, "then"));
        this.addAbility(ability);
    }
View Full Code Here

}

class AkkiUnderminerAbility extends TriggeredAbilityImpl {

    public AkkiUnderminerAbility() {
        super(Zone.BATTLEFIELD, new SacrificeEffect(new FilterPermanent(), 1, ""));
    }
View Full Code Here

        getLeftHalfCard().getSpellAbility().addTarget(new TargetCreaturePermanent());

        // Away
        // Target player sacrifices a creature.
        getRightHalfCard().getColor().setBlack(true);
        getRightHalfCard().getSpellAbility().addEffect(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target player"));
        getRightHalfCard().getSpellAbility().addTarget(new TargetPlayer());

    }
View Full Code Here

        this.expansionSetCode = "VMA";

        this.color.setBlack(true);

        // Target player sacrifices a creature.       
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterCreaturePermanent(), 1, "Target player"));
        this.getSpellAbility().addTarget(new TargetPlayer());
       
        // Flashback {5}{B}{B}
        this.addAbility(new FlashbackAbility(new ManaCostsImpl("{5}{B}{B}"), TimingRule.SORCERY));
    }
View Full Code Here

        this.expansionSetCode = "GTC";

        this.color.setRed(true);

        // Target player sacrifices an artifact and a land. Structural Collapse deals 2 damage to that player.
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterArtifactPermanent(), 1, "Target player"));
        this.getSpellAbility().addEffect(new SacrificeEffect(new FilterLandPermanent(), 1, "Target player"));
        this.getSpellAbility().addEffect(new DamageTargetEffect(2));
        this.getSpellAbility().addTarget(new TargetPlayer());
    }
View Full Code Here

        // Cumulative upkeep-Pay 1 life.
        this.addAbility(new CumulativeUpkeepAbility(new PayLifeCost(1)));
       
        // At the beginning of each player's upkeep, that player sacrifices a green or white permanent.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeEffect(filter, 1, "that player"), TargetController.ANY, false));
    }
View Full Code Here

        // {U}, {tap}: Put a 0/1 blue Homunculus artifact creature token onto the battlefield.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CreateTokenEffect(new HomunculusToken()), new ManaCostsImpl("{U}"));
        ability.addCost(new TapSourceCost());
        this.addAbility(ability);
        // At the beginning of your upkeep, sacrifice a Homunculus.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeEffect(filter, 1, ""), TargetController.ANY, false));
    }
View Full Code Here

    }

    @Override
    public void build() {
        // When Spined Fluke enters the battlefield, sacrifice a creature.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new SacrificeEffect(new FilterCreaturePermanent("a creature"), 1, "")));
        // {B}: Regenerate Spined Fluke.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ColoredManaCost(ColoredManaSymbol.B)));
    }
View Full Code Here

        this.expansionSetCode = "ODY";

        this.color.setRed(true);

        // Whenever a creature dies, that creature's controller sacrifices a land.
        this.addAbility(new DiesCreatureTriggeredAbility(new SacrificeEffect(filter, 1, "that creature's controller"), false, false, true));
    }
View Full Code Here

TOP

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

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.