Package mage.abilities.common

Examples of mage.abilities.common.AttacksTriggeredAbility


        Effect effect = new TapSourceEffect();
        effect.setText("Tap it");
        ability.addEffect(effect);
        this.addAbility(ability);
        // Whenever Prognostic Sphinx attacks, scry 3.</i>
        this.addAbility(new AttacksTriggeredAbility(new ScryEffect(3), false));
    }
View Full Code Here


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

        // Whenever Nefashu attacks, up to five target creatures each get -1/-1 until end of turn.
        Ability ability = new AttacksTriggeredAbility(new BoostTargetEffect(-1, -1, Duration.EndOfTurn), false, rule);
        ability.addTarget(new TargetCreaturePermanent(0, 5));
        this.addAbility(ability);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever Archon of the Triumvirate attacks, detain up to two target nonland permanents your opponents control.
        // (Until your next turn, those permanents can't attack or block and their activated abilities can't be activated.)
        Ability ability = new AttacksTriggeredAbility(new DetainTargetEffect(), false);
        ability.addTarget(new TargetNonlandPermanent(0,2,filter, false));
        this.addAbility(ability);
    }
View Full Code Here

        // Devour 2 (As this enters the battlefield, you may sacrifice any number of creatures. This creature enters the battlefield with twice that many +1/+1 counters on it.)
        this.addAbility(new DevourAbility(DevourFactor.Devour2));

        // Whenever Preyseizer Dragon attacks, it deals damage to target creature or player equal to the number of +1/+1 counters on Preyseizer Dragon.
        Ability ability = new AttacksTriggeredAbility(new DamageTargetEffect(new CountersCount(CounterType.P1P1)), false);
        ability.addTarget(new TargetCreatureOrPlayer());
        this.addAbility(ability);
    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // Whenever Spellbound Dragon attacks, draw a card, then discard a card. Spellbound Dragon gets +X/+0 until end of turn, where X is the discarded card's converted mana cost.
        this.addAbility(new AttacksTriggeredAbility(new SpellboundDragonEffect(), false));

    }
View Full Code Here

        // Flying
        this.addAbility(FlyingAbility.getInstance());

        // Whenever Krond the Dawn-Clad attacks, if it's enchanted, exile target permanent.
        Ability ability = new ConditionalTriggeredAbility(
                new AttacksTriggeredAbility(new ExileTargetEffect(), false),
                new EnchantedCondition(),
                "Whenever Krond the Dawn-Clad attacks, if it's enchanted, exile target permanent.");
        ability.addTarget(new TargetPermanent());
        this.addAbility(ability);
    }
View Full Code Here

        this.color.setGreen(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(6);

        // Whenever Fangren Pathcutter attacks, attacking creatures gain trample until end of turn.
        this.addAbility(new AttacksTriggeredAbility(new GainAbilityAllEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, new FilterAttackingCreature()), false));
    }
View Full Code Here

        this.subtype.add("Samurai");
        this.color.setWhite(true);
        this.power = new MageInt(3);
        this.toughness = new MageInt(3);
        this.addAbility(new BushidoAbility(1));
        this.addAbility(new AttacksTriggeredAbility(new BoostControlledEffect(1, 1, Duration.EndOfTurn, filter, false), false));
    }
View Full Code Here

        this.toughness = new MageInt(6);

        // Flying
        this.addAbility(FlyingAbility.getInstance());
        // Whenever Sibilant Spirit attacks, defending player may draw a card.
        this.addAbility(new AttacksTriggeredAbility(new SibilantSpiritEffect(), false));
    }
View Full Code Here

        this.subtype.add("Beast");
        this.color.setRed(true);
        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(5);
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(3, -3, Duration.EndOfTurn), false));
    }
View Full Code Here

TOP

Related Classes of mage.abilities.common.AttacksTriggeredAbility

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.