SkillTreesData checks if skill exists.

This commit is contained in:
MobiusDev
2017-07-26 20:42:28 +00:00
parent 0c917f69fe
commit e01542c509
5 changed files with 16 additions and 0 deletions

View File

@ -234,6 +234,10 @@ public final class SkillTreesData implements IGameXmlReader
}
final L2SkillLearn skillLearn = new L2SkillLearn(learnSkillSet);
// test if skill exists
SkillData.getInstance().getSkill(skillLearn.getSkillId(), skillLearn.getSkillLevel());
for (Node b = c.getFirstChild(); b != null; b = b.getNextSibling())
{
attrs = b.getAttributes();