mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Revert "assign correct number of attribute points after leveling up - fixes 6434"
This reverts commit 53e2939ad9.
This commit is contained in:
parent
53e2939ad9
commit
ece0de51cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue