Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.SacrificeSourceEffect


        this.expansionSetCode = "ULG";

        this.color.setWhite(true);

        // At the beginning of your upkeep, if there are four or more creatures on the battlefield, sacrifice Planar Collapse and destroy all creatures. They can't be regenerated.
        TriggeredAbility ability  = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
        ability.addEffect(new DestroyAllEffect(new FilterCreaturePermanent(), true));
        PlanarCollapseCondition contition = new PlanarCollapseCondition();
        this.addAbility(new ConditionalTriggeredAbility(ability, contition, "At the beginning of your upkeep, if there are four or more creatures on the battlefield, sacrifice {this} and destroy all creatures. They can't be regenerated"));
       
    }
View Full Code Here


        this.expansionSetCode = "ULG";

        this.color.setRed(true);

        // At the beginning of your upkeep, if there are seven or more lands on the battlefield, sacrifice Impending Disaster and destroy all lands.
        TriggeredAbility ability  = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
        ability.addEffect(new DestroyAllEffect(new FilterLandPermanent()));
        ImpendingDisasterCondition contition = new ImpendingDisasterCondition();
        this.addAbility(new ConditionalTriggeredAbility(ability, contition, "At the beginning of your upkeep, if there are seven or more lands on the battlefield, sacrifice {this} and destroy all lands"));
       
    }
View Full Code Here

class PutIntoYourGraveyardTriggeredAbility extends TriggeredAbilityImpl {



    public PutIntoYourGraveyardTriggeredAbility() {
        super(Zone.BATTLEFIELD, new SacrificeSourceEffect(), false);
    }
View Full Code Here

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
        // Enchanted creature has "At the beginning of your upkeep, sacrifice this creature."
        // When enchanted creature dies, its controller chooses target creature one of his or her opponents controls. Return Necrotic Plague from its owner's graveyard to the battlefield attached to that creature.
        Ability gainedAbility = new BeginningOfUpkeepTriggeredAbility(new SacrificeSourceEffect(), TargetController.YOU, false);
        Effect effect = new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText("Enchanted creature has \"At the beginning of your upkeep, sacrifice this creature.\"");
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
        this.addAbility(new DiesAttachedTriggeredAbility(new NecroticPlagueEffect(),"enchanted creature", false));
View Full Code Here

    }

    class PhylacteryLichAbility extends StateTriggeredAbility {

        public PhylacteryLichAbility() {
            super(Zone.BATTLEFIELD, new SacrificeSourceEffect());
        }
View Full Code Here

}

class ThranQuarryTriggeredAbility extends TriggeredAbilityImpl {

    ThranQuarryTriggeredAbility() {
        super(Zone.BATTLEFIELD, new SacrificeSourceEffect());
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // When Kathari Bomber deals combat damage to a player, put two 1/1 red Goblin creature tokens onto the battlefield and sacrifice Kathari Bomber.
        Ability ability = new DealsCombatDamageToAPlayerTriggeredAbility(new CreateTokenEffect(new GoblinToken(), 2), false);
        ability.addEffect(new SacrificeSourceEffect());
        this.addAbility(ability);

        // Unearth {3}{B}{R}
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{3}{B}{R}")));
    }
View Full Code Here

        this.expansionSetCode = "ULG";

        this.color.setBlue(true);

        // At the beginning of your upkeep, if you have 5 or less life, sacrifice Second Chance and take an extra turn after this one.
        TriggeredAbility ability  = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new SacrificeSourceEffect(), TargetController.YOU, false);
        ability.addEffect(new AddExtraTurnControllerEffect());
        this.addAbility(new ConditionalTriggeredAbility(ability, new FiveOrLessLifeCondition(), "At the beginning of your upkeep, if you have 5 or less life, sacrifice {this} and take an extra turn after this one"));
       
    }
View Full Code Here

                    controller.moveCardToHandWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD);
                }
            }

            if ( !targetChosen ) {
                new SacrificeSourceEffect().apply(game, source);
            }
            return true;
        }
        return false;
    }
View Full Code Here

        if (permanent != null) {
            EmptyToken token = new EmptyToken();
            CardUtil.copyTo(token).from(permanent);

            token.addAbility(HasteAbility.getInstance());
            token.addAbility(new BeginningOfEndStepTriggeredAbility(new SacrificeSourceEffect(), TargetController.ANY, true));
            token.putOntoBattlefield(1, game, source.getSourceId(), source.getControllerId());
            return true;
        }

        return false;
View Full Code Here

TOP

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

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.