From 392090eddcdcf08af93f8fed0cae26456e633f68 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Fri, 28 Oct 2022 21:53:12 +0200 Subject: [PATCH] Fixed bug for Passive Skill Binding. --- .../mmocore/api/player/profess/SavedClassInformation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/profess/SavedClassInformation.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/profess/SavedClassInformation.java index 72c9eccf..547ca782 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/profess/SavedClassInformation.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/profess/SavedClassInformation.java @@ -225,6 +225,9 @@ public class SavedClassInformation { node.getExperienceTable().reset(player, node); } + while (player.hasPassiveSkillBound(0)) + player.unbindPassiveSkill(0); + while (player.hasSkillBound(0)) player.unbindSkill(0);