Examples of TargetEnchantmentPermanent


Examples of mage.target.common.TargetEnchantmentPermanent

        this.subtype.add("Aura");

        this.color.setBlue(true);

        // Enchant enchantment
        TargetPermanent auraTarget = new TargetEnchantmentPermanent();
        this.getSpellAbility().addTarget(auraTarget);
        this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
       
        // You control enchanted enchantment.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ControlEnchantedEffect()));
    }
View Full Code Here

Examples of mage.target.common.TargetEnchantmentPermanent

class MortalObstinacyAbility extends TriggeredAbilityImpl {

    public MortalObstinacyAbility() {
        super(Zone.BATTLEFIELD, new DoIfCostPaid(new DestroyTargetEffect(), new SacrificeSourceCost()));
        addTarget(new TargetEnchantmentPermanent());
    }
View Full Code Here

Examples of mage.target.common.TargetEnchantmentPermanent

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

        // Heroic — Whenever you cast a spell that targets Triton Cavalry, you may return target enchantment to its owner's hand.
        Ability ability = new HeroicAbility(new ReturnToHandTargetEffect(), true);
        ability.addTarget(new TargetEnchantmentPermanent());
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.target.common.TargetEnchantmentPermanent

        this.color.setWhite(true);

        // Exile target enchantment. If the exiled card is a God card, search its controller's graveyard, hand, and library for any number of cards with the same name as that card and exile them, then that player shuffles his or her library.
        this.getSpellAbility().addEffect(new DeicideExileEffect());
        this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
    }
View Full Code Here

Examples of mage.target.common.TargetEnchantmentPermanent

        Effect effect = new DestroyTargetEffect();
        effect.setText("Destroy target artifact, target creature, target enchantment, and target land.");
        this.getSpellAbility().addEffect(effect);
        this.getSpellAbility().addTarget(new TargetArtifactPermanent());
        this.getSpellAbility().addTarget(new TargetCreaturePermanent());
        this.getSpellAbility().addTarget(new TargetEnchantmentPermanent());
        this.getSpellAbility().addTarget(new TargetLandPermanent());
    }
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.