Examples of DiesCreatureTriggeredAbility


Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        gainedAbility.addCost(new TapSourceCost());
        gainedAbility.addTarget(new TargetCreatureOrPlayer());
        Effect effect = new GainAbilityAttachedEffect(gainedAbility, AttachmentType.EQUIPMENT);
        effect.setText("Equipped creature has \"{2}, {T}: This creature deals 1 damage to target creature or player\"");
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new GainAbilityAttachedEffect(new DiesCreatureTriggeredAbility(new UntapSourceEffect(),false), AttachmentType.EQUIPMENT);
        effect.setText("and \"Whenever a creature dies, untap this creature.\"");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Whenever a Shaman creature enters the battlefield, you may attach Thornbite Staff to it.
        this.addAbility(new EntersBattlefieldAllTriggeredAbility(
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        this.color.setBlack(true);

        // Flash
        this.addAbility(FlashAbility.getInstance());
        // Whenever a creature you control dies, each opponent sacrifices a creature.
        this.addAbility(new DiesCreatureTriggeredAbility(new SacrificeOpponentsEffect(new FilterControlledCreaturePermanent("a creature")), false, filter));       
    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        // When Abzan Ascendancy enters the battlefield, put a +1/+1 counter on each creature you control.
        this.addAbility(new EntersBattlefieldTriggeredAbility(new AddCountersAllEffect(CounterType.P1P1.createInstance(), new FilterControlledCreaturePermanent()), false));

        // Whenever a nontoken creature you control dies, put a 1/1 white Spirit creature token with flying onto the battlefield.
        this.addAbility(new DiesCreatureTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken("KTK")), false, filter));

    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        super(ownerId, 58, "Blowfly Infestation", Rarity.UNCOMMON, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
        this.expansionSetCode = "SHM";
        this.color.setBlack(true);

        Effect effect = new BlowflyInfestationEffect();
        TriggeredAbility triggeredAbility = new DiesCreatureTriggeredAbility(effect, false, false, true);
        triggeredAbility.addTarget(new TargetCreaturePermanent());
        Condition condition = new BlowflyInfestationCondition();
        this.addAbility(new ConditionalTriggeredAbility(triggeredAbility, condition, rule));

    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

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

        this.addAbility(HexproofAbility.getInstance());
        // Whenever a creature dies, put a +1/+1 counter on Lumberknot.
        this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        // Enchanted creature has lifelink
        Effect effect = new GainAbilityAttachedEffect(LifelinkAbility.getInstance(), AttachmentType.AURA);
        effect.setText("Enchanted creature has lifelink");
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        // and "Whenever a creature an opponent controls dies, put a +1/+1 counter on this creature."
        effect = new GainAbilityAttachedEffect(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), true, filter), AttachmentType.AURA);
        ability.addEffect(effect);
        effect.setText("and \"Whenever a creature an opponent controls dies, put a +1/+1 counter on this creature.\"");
        this.addAbility(ability);

View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

       
        // Whenever an opponent searches his or her library, that player sacrifices a creature and loses 10 life.
        this.addAbility(new ObNixilisUnshackledTriggeredAbility());
       
        // Whenever another creature dies, put at +1/+1 counter on Ob Nixilis, Unshackled.
        this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false, true));
    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

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

        this.addAbility(FlyingAbility.getInstance());
        // Whenever another creature dies, you may draw a card. If you do, discard a card.
        this.addAbility(new DiesCreatureTriggeredAbility(new MurderOfCrowsEffect(), false, true));
    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        this.toughness = new MageInt(5);

        this.addAbility(DeathtouchAbility.getInstance());

        // Whenever another nontoken creature dies, you may draw a card.
        this.addAbility(new DiesCreatureTriggeredAbility(new DrawCardSourceControllerEffect(1), true, filter));
    }
View Full Code Here

Examples of mage.abilities.common.DiesCreatureTriggeredAbility

        this.toughness = new MageInt(2);

        // Whenever Havengul Vampire deals combat damage to a player, put a +1/+1 counter on it.
        this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
        // Whenever another creature dies, put a +1/+1 counter on Havengul Vampire.
        this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false, true));
    }
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.