Examples of addEffect()


Examples of mage.abilities.common.LandfallAbility.addEffect()

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

        Ability ability = new LandfallAbility(new LoseLifeTargetEffect(3), true);
        ability.addEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance(3)));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public ObNixilisTheFallen (final ObNixilisTheFallen card) {
View Full Code Here

Examples of mage.abilities.common.LimitedTimesPerTurnActivatedAbility.addEffect()

        DynamicValue lifeToPayAmount = new MultipliedValue(new CountersCount(CounterType.VELOCITY), 3);
        ability.addCost(new PayLifeCost(lifeToPayAmount, "3 life for each velocity counter on {source}"));
        ability.addTarget(new TargetPermanent());
        Effect effect = new AddCountersSourceEffect(CounterType.VELOCITY.createInstance());
        effect.setText("and put a velocity counter on {source}");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

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

Examples of mage.abilities.common.OnEventTriggeredAbility.addEffect()

        this.toughness = new MageInt(4);

        this.addAbility(FlyingAbility.getInstance());
        // At the beginning of your upkeep, target player draws a card and loses 1 life.
        Ability ability = new OnEventTriggeredAbility(EventType.UPKEEP_STEP_PRE, "beginning of your upkeep", new DrawCardTargetEffect(1), false);
        ability.addEffect(new LoseLifeTargetEffect(1));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public BloodgiftDemon(final BloodgiftDemon card) {
View Full Code Here

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

    this.expansionSetCode = "M11";
    Costs costs = new CostsImpl();
    costs.add(new GenericManaCost(2));
    costs.add(new TapSourceCost());
    Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainLifeEffect(5), costs);
    ability.addEffect(new ElixerOfImmortalityEffect());
    this.addAbility(ability);
  }

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

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

        this.subtype.add("Human");
        this.subtype.add("Rogue");
        this.power = new MageInt(4);
  this.toughness = new MageInt(3);
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-2, -0, Duration.EndOfTurn), new ManaCostsImpl("{U}{B}"));
        ability.addEffect(new GainAbilitySourceEffect(UnblockableAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }

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

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

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

        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DrawCardTargetEffect(1), new TapSourceCost());
        ability.addEffect(new DiscardTargetEffect(1));
        ability.addTarget(new TargetPlayer());
        this.addAbility(ability);
    }

    public RecklessScholar(final RecklessScholar card) {
View Full Code Here

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

                new BeginningOfUpkeepTriggeredAbility(
                    new DamageControllerEffect(1),
                    TargetController.YOU,
                    false),
                Duration.Custom, rule);
        ability.addEffect(effect);
        this.addAbility(ability);

    }

    public ObsidianFireheart(final ObsidianFireheart card) {
View Full Code Here

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

        this.expansionSetCode = "4ED";

        // {2}, {tap}: Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        ability.addEffect(new PreventCombatDamageToSourceEffect(Duration.EndOfTurn));
        ability.addEffect(new PreventCombatDamageBySourceEffect(Duration.EndOfTurn));
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.common.SimpleActivatedAbility.addEffect()

        // {2}, {tap}: Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn.
        Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new GenericManaCost(2));
        ability.addCost(new TapSourceCost());
        ability.addEffect(new PreventCombatDamageToSourceEffect(Duration.EndOfTurn));
        ability.addEffect(new PreventCombatDamageBySourceEffect(Duration.EndOfTurn));
        Target target = new TargetCreaturePermanent(filter);
        ability.addTarget(target);
        this.addAbility(ability);
    }
View Full Code Here

Examples of mage.abilities.common.SimpleStaticAbility.addEffect()

        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new AlurenRuleEffect());
        // and as though they had flash.
        // TODO: This as thought effect may only be used if the creature is cast by the aluren effect
        Effect effect = new CastAsThoughItHadFlashEffect(Duration.WhileOnBattlefield, filter, true);
        effect.setText("and as though they had flash");
        ability.addEffect(effect);
        this.addAbility(ability);
    }

    public Aluren(final Aluren 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.