Package mage.abilities.effects.common

Examples of mage.abilities.effects.common.GainAbilitySourceEffect


  protected boolean unearthed;

  public UnearthAbility(ManaCosts costs) {
    super(Zone.GRAVEYARD, new ReturnSourceFromGraveyardToBattlefieldEffect(), costs);
    this.timing = TimingRule.SORCERY;
    this.addEffect(new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.WhileOnBattlefield));
    this.addEffect(new CreateDelayedTriggeredAbilityEffect(new UnearthDelayedTriggeredAbility()));
    this.addEffect(new UnearthLeavesBattlefieldEffect());
  }
View Full Code Here


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

    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{R}")));
  }
View Full Code Here

        this.color.setBlack(true);
        this.power = new MageInt(1);
  this.toughness = new MageInt(1);
        this.addAbility(FlyingAbility.getInstance());
        this.addAbility(DeathtouchAbility.getInstance());
        this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(FirstStrikeAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{2}{R}")));
    }
View Full Code Here

        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);
    }
View Full Code Here

    this.color.setGreen(true);
    this.subtype.add("Elemental");
    this.subtype.add("Shapeshifter");
    this.power = new MageInt(4);
    this.toughness = new MageInt(4);
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(HasteAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}")));
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}")));
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new GainAbilitySourceEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn), new ManaCostsImpl("{G}")));
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, -1, Duration.EndOfTurn), new ManaCostsImpl("{1}")));
    this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(-1, 1, Duration.EndOfTurn), new ManaCostsImpl("{1}")));
  }
View Full Code Here

    this.power = new MageInt(2);
    this.toughness = new MageInt(1);
    this.addAbility(HasteAbility.getInstance());
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
    ability1.addTarget(new TargetNonBasicLandPermanent());
    KickerAbility ability2 = new KickerAbility(new GainAbilitySourceEffect(ability1, Duration.WhileOnBattlefield), false);
    ability2.addManaCost(new ColoredManaCost(ColoredManaSymbol.R));
    this.addAbility(ability2);

  }
View Full Code Here

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

    this.addAbility(UnblockableAbility.getInstance());
    Ability ability1 = new EntersBattlefieldTriggeredAbility(new AddPlusOneCountersSourceEffect(2));
    KickerAbility ability2 = new KickerAbility(new GainAbilitySourceEffect(ability1, Duration.WhileOnBattlefield), false);
    ability2.addManaCost(new GenericManaCost(3));
    this.addAbility(ability2);
  }
View Full Code Here

        this.subtype.add("Zombie");
        this.color.setBlack(true);
        this.power = new MageInt(1);
  this.toughness = new MageInt(1);
        SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(3, 0, Duration.EndOfTurn), new ManaCostsImpl(("{1}{U}{B}")));
        ability.getEffects().add(new GainAbilitySourceEffect(FlyingAbility.getInstance(), Duration.EndOfTurn));
        this.addAbility(ability);
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.GainAbilitySourceEffect

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.