Fixed revelation skills exclude NPE.
This commit is contained in:
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user