From ece0de51cc29d2972a517c7b02c3c3f1dc15f734 Mon Sep 17 00:00:00 2001 From: Alys Date: Tue, 5 Jan 2016 07:05:26 +1000 Subject: [PATCH] Revert "assign correct number of attribute points after leveling up - fixes 6434" This reverts commit 53e2939ad90123985c61f994ad7eed6e0c66b374. --- common/script/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/script/index.js b/common/script/index.js index 600cac08e4..6e74393255 100644 --- a/common/script/index.js +++ b/common/script/index.js @@ -2295,7 +2295,7 @@ api.wrap = function(user, main) { if (user.preferences.automaticAllocation) { user.fns.autoAllocate(); } else { - user.stats.points = (user.stats.lvl > MAX_LEVEL ? MAX_STAT_POINTS : user.stats.lvl) - allocatedStatPoints; + user.stats.points = MAX_STAT_POINTS - allocatedStatPoints; if (user.stats.points < 0) { user.stats.points = 0; }