Package mage.abilities.keyword

Examples of mage.abilities.keyword.LevelAbility


    this.color = card.getColor();
    this.manaCost = card.getManaCost();
    this.power = card.getPower();
    this.toughness = card.getToughness();
    if (card instanceof LevelerCard) {
      LevelAbility level = ((LevelerCard)card).getLevel(this.getCounters().getCount("Level"));
      if (level != null) {
        this.power.setValue(level.getPower());
        this.toughness.setValue(level.getToughness());
        for (Ability ability: level.getAbilities()) {
          this.addAbility(ability);
        }
      }
    }
    this.subtype = card.getSubtype();
View Full Code Here


    this.toughness = new MageInt(1);

    this.addAbility(new LevelUpAbility(new ManaCostsImpl("{1}{G}")));
    Abilities<Ability> abilities1 = new AbilitiesImpl<Ability>();
    abilities1.add(new JoragaManaAbility());
    this.getLevels().add(new LevelAbility(1, 4, abilities1, 1, 2));
    Abilities<Ability> abilities2 = new AbilitiesImpl<Ability>();
    abilities2.add(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityControlledEffect(new JoragaManaAbility(), Duration.WhileOnBattlefield, filter)));
    this.getLevels().add(new LevelAbility(5, -1, abilities2, 1, 4));
  }
View Full Code Here

    this.toughness = new MageInt(2);

    this.addAbility(new LevelUpAbility(new ManaCostsImpl("{R}")));
    Abilities<Ability> abilities1 = new AbilitiesImpl<Ability>();
    abilities1.add(FlyingAbility.getInstance());
    this.getLevels().add(new LevelAbility(4, 7, abilities1, 4, 4));
    Abilities<Ability> abilities2 = new AbilitiesImpl<Ability>();
    abilities2.add(FlyingAbility.getInstance());
    abilities2.add(TrampleAbility.getInstance());
    abilities2.add(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
    this.getLevels().add(new LevelAbility(8, -1, abilities2, 8, 8));
  }
View Full Code Here

TOP

Related Classes of mage.abilities.keyword.LevelAbility

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.