Package mage.abilities.keyword

Examples of mage.abilities.keyword.HeroicAbility.addEffect()


        Effect effect = new BoostSourceEffect(2,0, Duration.EndOfTurn);
        effect.setText("{this} gets +2/+0");
        Ability ability = new HeroicAbility(effect, false);
        effect = new GainAbilitySourceEffect(IntimidateAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("and gains intimidate until end of turn");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

    public AkroanLineBreaker(final AkroanLineBreaker card) {
        super(card);
View Full Code Here


        // <i>Heroic</i> - Whenever you cast a spell that targets Akroan Conscriptor, gain control of another target creature until end of turn. Untap that creature. It gains haste until end of turn.
        Ability ability = new HeroicAbility(new GainControlTargetEffect(Duration.EndOfTurn, true), false);
        Effect effect = new UntapTargetEffect();
        effect.setText("Untap that creature");
        ability.addEffect(effect);
        effect = new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("It gains haste until end of turn");
        ability.addEffect(effect);
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);
View Full Code Here

        Effect effect = new UntapTargetEffect();
        effect.setText("Untap that creature");
        ability.addEffect(effect);
        effect = new GainAbilityTargetEffect(HasteAbility.getInstance(), Duration.EndOfTurn);
        effect.setText("It gains haste until end of turn");
        ability.addEffect(effect);
        ability.addTarget(new TargetCreaturePermanent(filter));
        this.addAbility(ability);

    }
View Full Code Here

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

        // Heroic - Whenever you cast a spell that targets Battlewise Hoplite, put a +1/+1 counter on Battlewise Hoplite, then scry 1.
        Ability ability = new HeroicAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
        ability.addEffect(new ScryEffect(1));
        this.addAbility(ability);
    }

    public BattlewiseHoplite(final BattlewiseHoplite card) {
        super(card);
View Full Code Here

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

        // Heroic - Whenever you cast a spell that targets Favored Hoplite, put a +1/+1 counter on Favored Hoplite and prevent all damage that would be dealt to it this turn.
        Ability ability = new HeroicAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
        ability.addEffect(new PreventAllDamageToSourceEffect(Duration.EndOfTurn));
        this.addAbility(ability);
    }

    public FavoredHoplite(final FavoredHoplite card) {
        super(card);
View Full Code Here

        this.toughness = new MageInt(4);

        // Heroic - Whenever you cast a spell that targets Wavecrash Triton, tap target creature an opponent controls. That creature doesn't untap during its controller's next untap step.
        Ability ability = new HeroicAbility(new TapTargetEffect());
        ability.addTarget(new TargetCreaturePermanent(filter));
        ability.addEffect(new SkipNextUntapTargetEffect("That creature"));
        this.addAbility(ability);
    }

    public WavecrashTriton(final WavecrashTriton card) {
        super(card);
View Full Code Here

        Effect effect = new BoostControlledEffect(1,1, Duration.EndOfTurn, filter);
        effect.setText("creatures you control get +1/+1");
        Ability ability = new HeroicAbility(effect);
        effect = new GainAbilityControlledEffect(TrampleAbility.getInstance(), Duration.EndOfTurn, filter);
        effect.setText("and gain trample until end of turn");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

    public AnaxAndCymede(final AnaxAndCymede card) {
        super(card);
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.