Search in sources :

Example 1 with CastingCost

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);
}
Also used : CastingCost(com.elmakers.mine.bukkit.spell.CastingCost) MagicController(com.elmakers.mine.bukkit.magic.MagicController)

Aggregations

MagicController (com.elmakers.mine.bukkit.magic.MagicController)1 CastingCost (com.elmakers.mine.bukkit.spell.CastingCost)1