Examples of SacrificeControllerEffect


Examples of mage.abilities.effects.common.SacrificeControllerEffect

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Trample
        this.addAbility(TrampleAbility.getInstance());
        // At the beginning of your upkeep, sacrifice a non-Zombie creature, then put a 2/2 black Zombie creature token onto the battlefield.
        Ability ability = new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(filter, 1, ""), TargetController.YOU, false);
        ability.addEffect(new CreateTokenEffect(new ZombieToken("ALA")));
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

}

class LichsTombTriggeredAbility extends TriggeredAbilityImpl {
   
    LichsTombTriggeredAbility() {
        super(Zone.BATTLEFIELD, new SacrificeControllerEffect(new FilterPermanent(), 0, ""), false);
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

    }

    @Override
    public boolean replaceEvent(GameEvent event, Ability source, Game game) {
        DamageCreatureEvent damageEvent = (DamageCreatureEvent) event;
        new SacrificeControllerEffect(new FilterPermanent(), damageEvent.getAmount(), "").apply(game, source);
        return true;
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(TrampleAbility.getInstance()),
                new CardsInControllerGraveCondition(7),
                " has trample,"));
       
        Ability gainedAbility = new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(new FilterControlledCreaturePermanent(), 1, ""), TargetController.YOU, false);
       
        ability.addEffect(new ConditionalContinousEffect(
                new GainAbilitySourceEffect(gainedAbility),
                new CardsInControllerGraveCondition(7),
                " and has \"At the beginning of your upkeep, sacrifice a creature.\" "));
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

        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

Examples of mage.abilities.effects.common.SacrificeControllerEffect

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

        // When Kjeldoran Dead enters the battlefield, sacrifice a creature.
        Ability ability = new EntersBattlefieldTriggeredAbility(new SacrificeControllerEffect(new FilterCreaturePermanent(), 1, null));
        this.addAbility(ability);
        // {B}: Regenerate Kjeldoran Dead.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl("{B}")));
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

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

        // At the beginning of your upkeep, sacrifice a Snake.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(filter, 1,""), TargetController.YOU, false));
        // Whenever Shisato, Whispering Hunter deals combat damage to a player, that player skips his or her next untap step.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new SkipNextPlayerUntapStepEffect("that "),false, true));
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

        // When Abhorrent Overlord enters the battlefield, put a number of 1/1 black Harpy creature tokens with flying onto the battlefield equal to your devotion to black.
        Effect effect = new CreateTokenEffect(new AbhorrentOverlordHarpyToken(), new DevotionCount(ColoredManaSymbol.B));
        effect.setText("put a number of 1/1 black Harpy creature tokens with flying onto the battlefield equal to your devotion to black. <i>(Each {B} in the mana costs of permanents you control counts toward your devotion to black.)</i>");
        this.addAbility(new EntersBattlefieldTriggeredAbility(effect));
        // At the beginning of your upkeep, sacrifice a creature.
        this.addAbility(new BeginningOfUpkeepTriggeredAbility(new SacrificeControllerEffect(new FilterCreaturePermanent(), 1, null), TargetController.YOU, false));
    }
View Full Code Here

Examples of mage.abilities.effects.common.SacrificeControllerEffect

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

        // Whenever Lesser Gargadon attacks or blocks, sacrifice a land.
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new SacrificeControllerEffect(new FilterLandPermanent(), 1, ""), false));
    }
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.