use of com.elmakers.mine.bukkit.spell.CastingCost in project MagicPlugin by elBukkit.
the class HeroesSkillSpell method loadTemplate.
@Override
public void loadTemplate(String key, ConfigurationSection template) {
super.loadTemplate(key, template);
skillKey = key.substring(7);
showUndoable = false;
manaCost = new CastingCost(controller, "mana", 1);
if (!(controller instanceof MagicController))
return;
magic = (MagicController) controller;
heroes = magic.getHeroes();
if (heroes == null)
return;
skill = heroes.getSkill(skillKey);
}
Aggregations