mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Revert "assign correct number of attribute points after leveling up - fixes 6434"
This reverts commit 53e2939ad9.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user