extend skill unlock packet to include ability type and improve logout handling logic
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user