mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Turn automaticAllocation to false when resetting or rebirthing
closes #7627 fixes #7620
This commit is contained in:
committed by
Blade Barringer
parent
c77f165b3e
commit
a58bf4ee2b
@@ -52,6 +52,8 @@ module.exports = function rebirth (user, tasks = [], req = {}, analytics) {
|
||||
stats.lvl = 1;
|
||||
stats.class = 'warrior';
|
||||
|
||||
user.preferences.automaticAllocation = false;
|
||||
|
||||
_.each(USERSTATSLIST, function resetStats (value) {
|
||||
stats[value] = 0;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user