Package mage.abilities

Examples of mage.abilities.PlayLandAbility


    this.cardNumber = cardNumber;
    for (CardType newCardType: cardTypes)
      this.cardType.add(newCardType);
    this.manaCost.load(costs);
    if (cardType.contains(CardType.LAND))
      addAbility(new PlayLandAbility(name));
    else
      addAbility(new SpellAbility(manaCost, name));
  }
View Full Code Here


        this.rarity = rarity;
        this.cardNumber = cardNumber;
        this.cardType.addAll(Arrays.asList(cardTypes));
        this.manaCost.load(costs);
        if (cardType.contains(CardType.LAND)) {
            Ability ability = new PlayLandAbility(name);
            ability.setSourceId(this.getId());
            abilities.add(ability);
        }
        else {           
            SpellAbility ability = new SpellAbility(manaCost, name, Zone.HAND, spellAbilityType);
            if (!cardType.contains(CardType.INSTANT)) {
                ability.setTiming(TimingRule.SORCERY);
            }
            ability.setSourceId(this.getId());
            abilities.add(ability);           
        }
        this.usesVariousArt = Character.isDigit(this.getClass().getName().charAt(this.getClass().getName().length()-1));
        this.counters = new Counters();
        this.morphCard = false;
View Full Code Here

TOP

Related Classes of mage.abilities.PlayLandAbility

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.