diff --git a/lib/app/scoring.js b/lib/app/scoring.js index 6468c7554f..c65c8267fa 100644 --- a/lib/app/scoring.js +++ b/lib/app/scoring.js @@ -45,6 +45,7 @@ updateStats = function(user, stats) { if (stats.exp >= tnl) { stats.exp -= tnl; user.set('stats.lvl', user.get('stats.lvl') + 1); + user.set('stats.hp', 50); statsNotification(' Level Up!', 'info'); } if (!user.get('items.itemsEnabled') && stats.exp >= 15) { diff --git a/src/app/scoring.coffee b/src/app/scoring.coffee index 930e23cec9..623aa473c2 100644 --- a/src/app/scoring.coffee +++ b/src/app/scoring.coffee @@ -41,6 +41,7 @@ updateStats = (user, stats) -> if stats.exp >= tnl stats.exp -= tnl user.set 'stats.lvl', user.get('stats.lvl') + 1 + user.set 'stats.hp', 50 statsNotification(' Level Up!', 'info') if !user.get('items.itemsEnabled') and stats.exp >=15 user.set 'items.itemsEnabled', true