Examples of BecomesTargetTriggeredAbility


Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

        this.addAbility(DefenderAbility.getInstance());
        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

        this.color.setRed(true);
        this.color.setGreen(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(5);

        this.addAbility(new BecomesTargetTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance())));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

    @Override
    public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {
        for (Permanent object: game.getBattlefield().getActivePermanents(filter, source.getControllerId(), game)) {
            switch (layer) {
                case AbilityAddingRemovingEffects_6:
                    object.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()), source.getSourceId(), game);
                    break;
                case TypeChangingEffects_4:
                    if (!object.getSubtype().contains("Illusion")) {
                        object.getSubtype().add("Illusion");
                    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(new BecomesTargetTriggeredAbility(new BoostSourceEffect(0, 3, Duration.EndOfTurn)));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

        // Bestow 3UU (If you cast this card for its bestow cost, it's an Aura spell with enchant creature. It becomes a creature again if it's not attached to a creature.)
        this.addAbility(new BestowAbility(this, "{3}{U}{U}"));
       
        // When Crystalline Nautilus becomes the target of a spell or ability, sacrifice it.
        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
       
        // Enchanted creature gets +4/+4 and has "When this creature becomes the target of a spell or ability, sacrifice it."       
        Effect effect = new BoostEnchantedEffect(4,4,Duration.WhileOnBattlefield);
        effect.setText("Enchanted creature gets +4/+4");
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new GainAbilityAttachedEffect(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText("and has \"When this creature becomes the target of a spell or ability, sacrifice it.\"");
        ability.addEffect(effect);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

    this.color.setBlack(true);
    this.power = new MageInt(3);
    this.toughness = new MageInt(4);
 
        // When Skulking Fugitive becomes the target of a spell or ability, sacrifice it.
        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

    // Whenever Task Force becomes the target of a spell or ability, it gets +0/+3 until end of turn.
        this.addAbility(new BecomesTargetTriggeredAbility(new BoostSourceEffect(0, 3, Duration.EndOfTurn)));
    }
View Full Code Here

Examples of mage.abilities.common.BecomesTargetTriggeredAbility

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

        // Whenever Cephalid Illusionist becomes the target of a spell or ability, put the top three cards of your library into your graveyard.
        this.addAbility(new BecomesTargetTriggeredAbility(new PutTopCardOfLibraryIntoGraveControllerEffect(3)));
       
        // {2}{U}, {tap}: Prevent all combat damage that would be dealt to
        Effect effect = new PreventDamageToTargetEffect(Duration.EndOfTurn, true);
        effect.setText("Prevent all combat damage that would be dealt to");
        // and dealt by target creature you control this turn.
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.