mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 19:50:37 +00:00
fixes #1036
This commit is contained in:
parent
ca665d334a
commit
6e4f1a40f8
1 changed files with 2 additions and 3 deletions
|
|
@ -264,11 +264,10 @@ updateStats = (user, newStats, options={}) ->
|
|||
if newStats.hp?
|
||||
# Game Over
|
||||
if newStats.hp <= 0
|
||||
user.stats.hp = 0 # signifies dead
|
||||
user.stats.hp = 0; paths['stats.hp'] = true # signifies dead
|
||||
return
|
||||
else
|
||||
user.stats.hp = newStats.hp
|
||||
paths['stats.hp'] = true
|
||||
user.stats.hp = newStats.hp; paths['stats.hp'] = true
|
||||
|
||||
if newStats.exp?
|
||||
tnl = obj.tnl(user.stats.lvl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue