Package mage.abilities.common

Examples of mage.abilities.common.AttacksOrBlocksTriggeredAbility


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

        // Whenever Dusk Urchins attacks or blocks, put a -1/-1 counter on it.
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance()), false));

        // When Dusk Urchins dies, draw a card for each -1/-1 counter on it.
        this.addAbility(new DiesTriggeredAbility(new DrawCardSourceControllerEffect(new CountersCount(CounterType.M1M1))));

    }
View Full Code Here


        // Clockwork Hydra enters the battlefield with four +1/+1 counters on it.
        Effect effect = new AddCountersSourceEffect(CounterType.P1P1.createInstance(4));
        effect.setText("with four +1/+1 counters on it");
        this.addAbility(new EntersBattlefieldAbility(effect));
        // Whenever Clockwork Hydra attacks or blocks, remove a +1/+1 counter from it. If you do, Clockwork Hydra deals 1 damage to target creature or player.
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new ClockworkHydraEffect(), false));

        // {tap}: Put a +1/+1 counter on Clockwork Hydra.
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new AddCountersSourceEffect(CounterType.P1P1.createInstance(), true), new TapSourceCost()));
    }
View Full Code Here

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

        // When Brackwater Elemental attacks or blocks, sacrifice it at the beginning of the next end step.
        this.addAbility(new AttacksOrBlocksTriggeredAbility(new BrackwaterElementalSacrificeEffect(), false));
        // Unearth {2}{U}
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{U}")));
    }
View Full Code Here

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

        this.addAbility(FlyingAbility.getInstance());
        AttacksOrBlocksTriggeredAbility ability = new AttacksOrBlocksTriggeredAbility(new UntapTargetEffect(), false);
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }
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

        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

Related Classes of mage.abilities.common.AttacksOrBlocksTriggeredAbility

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.