} if (((L2Skill) template).getTimeSet() != 0) { time = ((L2Skill) template).getTimeSet(); } else if (attrs.getNamedItem("time") != null) { time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(),template)); if (Config.ENABLE_MODIFY_SKILL_DURATION) { if (Config.SKILL_DURATION_LIST.containsKey(((L2Skill) template).getId())) { if (((L2Skill) template).getLevel() < 100) time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); else if ((((L2Skill) template).getLevel() >= 100) && (((L2Skill) template).getLevel() < 140)) time += Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); else if (((L2Skill) template).getLevel() > 140) time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); if (Config.DEBUG) _log.info("*** Skill " + ((L2Skill) template).getName() + " (" + ((L2Skill) template).getLevel() + ") changed duration to " + time + " seconds."); } } else time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(),template)); }