Fixed revelation skills exclude NPE.

This commit is contained in:
MobiusDev
2017-10-29 19:34:03 +00:00
parent 4d88174b71
commit cba3a349a6
4 changed files with 20 additions and 4 deletions

View File

@@ -1403,9 +1403,13 @@ public final class SkillTreesData implements IGameXmlReader
* @return the revelation skill from the Revelation Skill Tree for a given {@code id} and {@code lvl}
*/
public L2SkillLearn getRevelationSkill(SubclassType type, int id, int lvl)
{
if (_revelationSkillTree.get(type) != null)
{
return _revelationSkillTree.get(type).get(SkillData.getSkillHashCode(id, lvl));
}
return null;
}
/**
* Gets the minimum level for new skill.

View File

@@ -1403,9 +1403,13 @@ public final class SkillTreesData implements IGameXmlReader
* @return the revelation skill from the Revelation Skill Tree for a given {@code id} and {@code lvl}
*/
public L2SkillLearn getRevelationSkill(SubclassType type, int id, int lvl)
{
if (_revelationSkillTree.get(type) != null)
{
return _revelationSkillTree.get(type).get(SkillData.getSkillHashCode(id, lvl));
}
return null;
}
/**
* Gets the minimum level for new skill.

View File

@@ -1403,9 +1403,13 @@ public final class SkillTreesData implements IGameXmlReader
* @return the revelation skill from the Revelation Skill Tree for a given {@code id} and {@code lvl}
*/
public L2SkillLearn getRevelationSkill(SubclassType type, int id, int lvl)
{
if (_revelationSkillTree.get(type) != null)
{
return _revelationSkillTree.get(type).get(SkillData.getSkillHashCode(id, lvl));
}
return null;
}
/**
* Gets the minimum level for new skill.

View File

@@ -1403,9 +1403,13 @@ public final class SkillTreesData implements IGameXmlReader
* @return the revelation skill from the Revelation Skill Tree for a given {@code id} and {@code lvl}
*/
public L2SkillLearn getRevelationSkill(SubclassType type, int id, int lvl)
{
if (_revelationSkillTree.get(type) != null)
{
return _revelationSkillTree.get(type).get(SkillData.getSkillHashCode(id, lvl));
}
return null;
}
/**
* Gets the minimum level for new skill.