Package mage.abilities.common

Examples of mage.abilities.common.AttacksTriggeredAbility


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

        this.addAbility(HexproofAbility.getInstance());
        // Whenever Geist of Saint Traft attacks, put a 4/4 white Angel creature token with flying onto the battlefield tapped and attacking. Exile that token at end of combat.
        this.addAbility(new AttacksTriggeredAbility(new GeistOfSaintTraftEffect(), false));
    }
View Full Code Here


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

        // Whenever Sigiled Skink attacks, scry 1.
        this.addAbility(new AttacksTriggeredAbility(new ScryEffect(1), false));
    }
View Full Code Here

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

        this.addAbility(new AttacksTriggeredAbility(new SwitchPowerToughnessSourceEffect(Duration.EndOfTurn), false));
    }
View Full Code Here

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

        // Enchanted creature has "Whenever this creature attacks, you may tap or untap target permanent."
        Ability gainedAbility = new AttacksTriggeredAbility(new MayTapOrUntapTargetEffect(), true);
        gainedAbility.addTarget(new TargetPermanent());
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(gainedAbility, AttachmentType.AURA)));
    }
View Full Code Here

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

        Ability ability = new AttacksTriggeredAbility(new TapTargetEffect(), true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

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

        // Whenever Novablast Wurm attacks, destroy all other creatures.
        this.addAbility(new AttacksTriggeredAbility(new DestroyAllEffect(filter), false));
    }
View Full Code Here

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

        // Whenever Grotag Thrasher attacks, target creature can't block this turn.
        AttacksTriggeredAbility ability = new AttacksTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), false);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

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

        // Whenever Borderland Marauder attacks, it gets +2/+0 until end of turn.
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(2, 0, Duration.EndOfTurn), false));
    }
View Full Code Here

        // Protection from blue
        this.addAbility(new ProtectionAbility(filter1));
        // Whenever Goblin Piledriver attacks, it gets +2/+0 until end of turn for each other attacking Goblin.
        PermanentsOnBattlefieldCount value = new PermanentsOnBattlefieldCount(filter2, 2);
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(value, new StaticValue(0), Duration.EndOfTurn, true), false));
    }
View Full Code Here

        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever Kinscaer Harpoonist attacks, you may have target creature lose flying until end of turn.
        Effect effect = new LoseAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("you may have target creature lose flying until end of turn");
        Ability ability = new AttacksTriggeredAbility(effect, true);
        ability.addTarget(new TargetCreaturePermanent());
        this.addAbility(ability);
       
    }
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.