Examples of testPay()


Examples of mage.abilities.costs.mana.ManaCost.testPay()

    }
    for (Permanent perm: producers) {
      // pay all colored costs first
      for (ManaAbility ability: perm.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {
        if (cost instanceof ColoredManaCost) {
          if (cost.testPay(ability.getNetMana(game))) {
            if (activateAbility(ability, game))
              return true;
          }
        }
      }
View Full Code Here

Examples of mage.abilities.costs.mana.ManaCost.testPay()

        }
      }
      // then pay hybrid
      for (ManaAbility ability: perm.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {
        if (cost instanceof HybridManaCost) {
          if (cost.testPay(ability.getNetMana(game))) {
            if (activateAbility(ability, game))
              return true;
          }
        }
      }
View Full Code Here

Examples of mage.abilities.costs.mana.ManaCost.testPay()

        }
      }
      // then pay mono hybrid
      for (ManaAbility ability: perm.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {
        if (cost instanceof MonoHybridManaCost) {
          if (cost.testPay(ability.getNetMana(game))) {
            if (activateAbility(ability, game))
              return true;
          }
        }
      }
View Full Code Here

Examples of mage.abilities.costs.mana.ManaCost.testPay()

        }
      }
      // finally pay generic
      for (ManaAbility ability: perm.getAbilities().getManaAbilities(Zone.BATTLEFIELD)) {
        if (cost instanceof GenericManaCost) {
          if (cost.testPay(ability.getNetMana(game))) {
            if (activateAbility(ability, game))
              return true;
          }
        }
      }
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.