Auto remove, skilltree and AcquireSkillList fixes.

Contributed by rocknowx.
This commit is contained in:
MobiusDev
2015-11-10 08:52:13 +00:00
parent 4c37092c3a
commit c4988df6a0
39 changed files with 76 additions and 43 deletions

View File

@ -2657,7 +2657,7 @@ public final class L2PcInstance extends L2Playable
// Remove skills if required.
for (Skill sk : getSkills().values())
{
final L2SkillLearn s = SkillTreesData.getInstance().getSkillLearn(sk.getId(), sk.getLevel(), this);
final L2SkillLearn s = SkillTreesData.getInstance().getSkillLearn(sk.getId(), 1, this);
if ((s != null) && !s.getRemoveSkills().isEmpty())
{
s.getRemoveSkills().forEach(skillId ->