Package games.stendhal.server.entity.npc.condition

Examples of games.stendhal.server.entity.npc.condition.PlayerManaGreaterThanCondition


  private boolean checkPreConditions(Player caster, Entity target) {
    //     * use/implement standard conditions for checks
    //     * use/implement standard actions for mana usage etc
   
    //check for sufficient mana
    if (!new PlayerManaGreaterThanCondition(getMana()-1).fire(caster, null, null)) {
      caster.sendPrivateText("You have not sufficent mana to cast your spell \""+getName()+"\".");
      return false;
    }
   
    //check minimum level
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.npc.condition.PlayerManaGreaterThanCondition

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.