extend skill unlock packet to include ability type and improve logout handling logic

This commit is contained in:
2026-05-21 16:32:11 +02:00
parent 30310b6eb9
commit bf4452f6ac
7 changed files with 32 additions and 15 deletions
@@ -69,6 +69,7 @@ public final class SkillEngineAPI {
}
public static boolean consumeSkillPoints(Player player, int amount) {
if (amount <= 0) return false;
PlayerSkillData data = getPlayerData(player);
if (data != null && data.getSkillPoints() >= amount) {
data.addSkillPoints(-amount);