Better solution for auto giving skills.

This commit is contained in:
MobiusDev
2017-10-01 21:10:20 +00:00
parent 86b294a4f1
commit 6a714ee6c9
18 changed files with 18 additions and 25 deletions

View File

@@ -2603,7 +2603,7 @@ public final class L2PcInstance extends L2Playable
{
int skillCounter = 0;
// Get available skills
final Collection<Skill> skills = SkillTreesData.getInstance().getAllAvailableSkills(this, getClassId(), includedByFs, includeAutoGet);
final Collection<Skill> skills = SkillTreesData.getInstance().getAllAvailableSkills(this, getTemplate().getClassId(), includedByFs, includeAutoGet);
final List<Skill> skillsForStore = new ArrayList<>();
for (Skill skill : skills)