Package mage.abilities.common

Examples of mage.abilities.common.DiesCreatureTriggeredAbility


        this.toughness = new MageInt(1);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever a creature with flying dies, put a +1/+1 counter on Soulcatcher.
        this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false, filter));
    }
View Full Code Here


        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever another creature leaves the battlefield, you may have target player put the top two cards of his or her library into his or her graveyard.
        Ability ability = new DiesCreatureTriggeredAbility(new PutLibraryIntoGraveTargetEffect(2), true, true, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
       
        // Unearth {2}{B}
        this.addAbility(new UnearthAbility(new ManaCostsImpl("{2}{B}")));
    }
View Full Code Here

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

        // Whenever Skirk Drill Sergeant or another Goblin dies, you may pay {2}{R}. If you do, reveal the top card of your library. If it's a Goblin permanent card, put it onto the battlefield. Otherwise, put it into your graveyard.
        this.addAbility(new DiesCreatureTriggeredAbility(new DoIfCostPaid(new SkirkDrillSergeantEffect(), new ManaCostsImpl("{2}{R}")), false, filter));

    }
View Full Code Here

        this.toughness = new MageInt(5);

        // Haste
        this.addAbility(HasteAbility.getInstance());
        // Whenever another creature you control dies, it deals damage equal to its power to target player.
        Ability ability = new DiesCreatureTriggeredAbility(new StalkingVengeanceDamageEffect(), false, filter, true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
       
        // When a creature dies, destroy enchanted creature.
        this.addAbility(new DiesCreatureTriggeredAbility(new DestroyEnchantedEffect(), false, filter));
       
    }
View Full Code Here

        this.subtype.add("Goblin");

        this.color.setRed(true);

        // Whenever another Goblin you control dies, you may have Boggart Shenanigans deal 1 damage to target player.
        Ability ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(1), true, filter, false);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "ALL";

        this.color.setWhite(true);

        // Whenever a creature dies, you may pay {3}. If you do, draw a card.
        Ability ability = new DiesCreatureTriggeredAbility(new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new ManaCostsImpl("{3}")), false);
        this.addAbility(ability);
    }
View Full Code Here

        this.expansionSetCode = "ALA";

        this.color.setRed(true);

        // Whenever a creature dies, you may have Vicious Shadows deal damage to target player equal to the number of cards in that player's hand.
        Ability ability = new DiesCreatureTriggeredAbility(new DamageTargetEffect(new TargetPlayerCardsInHandCount()), true);
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        this.power = new MageInt(1);
        this.toughness = new MageInt(1);

        this.addAbility(FirstStrikeAbility.getInstance());
        // Whenever another creature dies, you may put a +1/+1 counter on Rockslide Elemental.
        this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), true, true));
    }
View Full Code Here

        this.toughness = new MageInt(3);

        this.color.setBlack(true);

        // Whenever another nontoken creature dies, you may put a 1/1 black Rat creature token onto the battlefield.
        this.addAbility(new DiesCreatureTriggeredAbility(new CreateTokenEffect(new RatToken()), true, filter));
        // Rats you control have deathtouch.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(DeathtouchAbility.getInstance(), Duration.WhileOnBattlefield, filter2)));
        
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.DiesCreatureTriggeredAbility

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.