Examples of DiesAttachedTriggeredAbility


Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        this.addAbility(ability2);

        // When enchanted Forest is put into a graveyard, you may return Genju of the Cedars from your graveyard to your hand.       
        Effect effect = new ReturnToHandSourceEffect();
        effect.setText("you may return {this} from your graveyard to your hand");
        Ability ability3 = new DiesAttachedTriggeredAbility(effect , "enchanted Forest", true, false);
        this.addAbility(ability3);
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        // {2}: Enchanted land becomes a legendary 8/12 Spirit creature with trample until end of turn. It's still a land.
        Ability ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BecomesCreatureAttachedEffect(new SpiritToken(), "Enchanted land becomes a legendary 8/12 Spirit creature with trample until end of turn. It's still a land", Duration.EndOfTurn),new GenericManaCost(2));
        this.addAbility(ability2);

        // When enchanted land is put into a graveyard, you may return Genju of the Realm from your graveyard to your hand.
        Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandSourceEffect(), "enchanted land", true, false);
        this.addAbility(ability3);
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(4, 4, Duration.WhileOnBattlefield)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FlyingAbility.getInstance(), AttachmentType.AURA)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(FirstStrikeAbility.getInstance(), AttachmentType.AURA)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AddCardSubtypeAttachedEffect("Angel", Duration.WhileOnBattlefield, AttachmentType.AURA)));

        this.addAbility(new DiesAttachedTriggeredAbility(new ReturnToHandSourceEffect(), "enchanted creature"));
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        effect.setText("with \"Whenever this creature deals damage, its controller gains that much life.\".  It's still a land");
        ability2.addEffect(effect);
        this.addAbility(ability2);

        // When enchanted Plains is put into a graveyard, you may return Genju of the Fields from your graveyard to your hand.
        Ability ability3 = new DiesAttachedTriggeredAbility(new ReturnToHandSourceEffect(), "enchanted Plains", true, false);
        this.addAbility(ability3);
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // When enchanted creature dies, put X 1/1 white Soldier creature tokens onto the battlefield, where X is its power.
        this.addAbility(new DiesAttachedTriggeredAbility(new CreateTokenEffect(new SoldierToken(), new AttachedPermanentPowerCount()), "enchanted creature"));
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        this.addAbility(ability);

        // When enchanted creature dies, that creature's controller may search his or her library for a creature card and put that card onto the battlefield. If that player does, he or she shuffles his or her library.
        Effect effect = new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterCreatureCard()), false, true, Outcome.PutCreatureInPlay);
        effect.setText("that creature's controller may search his or her library for a creature card and put that card onto the battlefield. If that player does, he or she shuffles his or her library");
        this.addAbility(new DiesAttachedTriggeredAbility(effect, "enchanted creature", true, true));

    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        // Enchanted creature gets +2/+2 and has flying.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2, Duration.WhileOnBattlefield));
        ability.addEffect(new GainAbilityAttachedEffect(FlyingAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield, "and has flying"));
        this.addAbility(ability);
        // When enchanted creature dies, put a 2/2 white Griffin creature token with flying onto the battlefield.
        this.addAbility(new DiesAttachedTriggeredAbility(new CreateTokenEffect(new GriffinToken()), "enchanted creature"));
    }
View Full Code Here

Examples of mage.abilities.common.DiesAttachedTriggeredAbility

        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Benefit));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        this.addAbility(new DiesAttachedTriggeredAbility(new GainLifeEffect(6), "enchanted artifact", false, 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.