Package mage.abilities.common

Examples of mage.abilities.common.BecomesTargetTriggeredAbility


        this.toughness = new MageInt(3);

        // Flanking
        this.addAbility(new FlankingAbility());
        // When Skulking Knight becomes the target of a spell or ability, sacrifice it.
        this.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()));
    }
View Full Code Here


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

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

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

        this.toughness = new MageInt(3);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Cursed Monstrosity becomes the target of a spell or ability, sacrifice it unless you discard a land card.
        this.addAbility(new BecomesTargetTriggeredAbility(
                            new SacrificeSourceUnlessPaysEffect(
                            new DiscardTargetCost(new TargetCardInHand(new FilterLandCard()))
                )));
    }
View Full Code Here

        this.toughness = new MageInt(2);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Tethered Skirge becomes the target of a spell or ability, you lose 1 life.
        this.addAbility(new BecomesTargetTriggeredAbility(new LoseLifeSourceControllerEffect(1)));
    }
View Full Code Here

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

        // When Petrahydrox becomes the target of a spell or ability, return Petrahydrox to its owner's hand.
        this.addAbility(new BecomesTargetTriggeredAbility(new ReturnToHandSourceEffect(true)));
    }
View Full Code Here

                        @Override
                        public Boolean apply(Game game, Permanent permanent) {
                            if (!permanent.getSubtype().contains("Illusion")) {
                                permanent.getSubtype().add("Illusion");
                            }
                            permanent.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()), game);
                            return true;
                        }
                    });

                    return true;
View Full Code Here

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

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

TOP

Related Classes of mage.abilities.common.BecomesTargetTriggeredAbility

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.