Package mage.abilities.common

Examples of mage.abilities.common.AttacksTriggeredAbility


        this.subtype.add("Human");
        this.subtype.add("Soldier");
        this.color.setWhite(true);
        this.power = new MageInt(2);
        this.toughness = new MageInt(2);
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(1, 1, Duration.EndOfTurn), false));
    }
View Full Code Here


        // Battle cry (Whenever this creature attacks, each other attacking creature gets +1/+0 until end of turn.)
        this.addAbility(new BattleCryAbility());

        // Whenever Hero of Bladehold attacks, put two 1/1 white Soldier creature tokens onto the battlefield tapped and attacking.
        this.addAbility(new AttacksTriggeredAbility(new CreateTokenEffect(new SoldierToken(), 2, true, true), false));

    }
View Full Code Here

       
        // Flying
        this.addAbility(FlyingAbility.getInstance());
       
        // Whenever Chasm Drake attacks, target creature you control gains flying until end of turn.
        Ability ability = new AttacksTriggeredAbility(new GainAbilityTargetEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), false);
        ability.addTarget(new TargetControlledCreaturePermanent());
        this.addAbility(ability);
    }
View Full Code Here

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);
       
        // Enchanted creature gets +2/+2 and has "Whenever this creature attacks, untap all lands you control."
        Ability attachedAbility = new AttacksTriggeredAbility(new UntapAllLandsControllerEffect(), false);
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2, 2, Duration.WhileOnBattlefield)));
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAttachedEffect(attachedAbility, AttachmentType.AURA)));
       
        // Totem armor
        this.addAbility(new TotemArmorAbility());
View Full Code Here

        this.toughness = new MageInt(2);

        // Bushido 1
        this.addAbility(new BushidoAbility(1));
        // Whenever Ronin Cliffrider attacks, you may have it deal 1 damage to each creature defending player controls.
        this.addAbility(new AttacksTriggeredAbility(new RoninCliffriderEffect(), true));
    }
View Full Code Here

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

        this.addAbility(TrampleAbility.getInstance());

        this.addAbility(new AttacksTriggeredAbility(new CreateDelayedTriggeredAbilityEffect(new AtTheEndOfCombatDelayedTriggeredAbility(new SacrificeSourceEffect())), false));
    }
View Full Code Here

        Abilities<Ability> abilities1 = new AbilitiesImpl<Ability>();
        // LEVEL 6+
        // 6/6
        // Whenever Lord of Shatterskull Pass attacks, it deals 6 damage to each creature defending player controls.
        Abilities<Ability> abilities2 = new AbilitiesImpl<Ability>();
        abilities2.add(new AttacksTriggeredAbility(new LordOfShatterskullPassEffect(), false));

        LevelerCardBuilder.construct(this,
                new LevelerCardBuilder.LevelAbility(1, 5, abilities1, 6, 6),
                new LevelerCardBuilder.LevelAbility(6, -1, abilities2, 6, 6));
    }
View Full Code Here

        this.expansionSetCode = "M10";
        this.subtype.add("Elemental");
        this.color.setGreen(true);
        this.power = new MageInt(0);
        this.toughness = new MageInt(3);
        this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(5, 0, Duration.EndOfTurn), false));
    }
View Full Code Here

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

        // Whenever Lead Golem attacks, it doesn't untap during its controller's next untap step.
        Ability ability = new AttacksTriggeredAbility(new SkipNextUntapSourceEffect(), false);
        this.addAbility(ability);
    }
View Full Code Here

        this.subtype.add("Warrior");
        this.color.setRed(true);
        this.power = new MageInt(4);
        this.toughness = new MageInt(4);

        Ability ability = new AttacksTriggeredAbility(new CyclopsGladiatorEffect(), true);
        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.