mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
fix typo in previous commit
This commit is contained in:
parent
e692b4b392
commit
e788872932
2 changed files with 2 additions and 2 deletions
2
dist/habitrpg-shared.js
vendored
2
dist/habitrpg-shared.js
vendored
|
|
@ -14148,7 +14148,7 @@ api.wrap = function(user, main) {
|
|||
},
|
||||
revive: function(req, cb) {
|
||||
var item, lostItem, lostStat;
|
||||
if (!(user.stats.hp > 0)) {
|
||||
if (!(user.stats.hp <= 0)) {
|
||||
return typeof cb === "function" ? cb({
|
||||
code: 400,
|
||||
message: "Cannot revive if not dead"
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ api.wrap = (user, main=true) ->
|
|||
cb? null, {}
|
||||
|
||||
revive: (req, cb) ->
|
||||
return cb?({code:400, message: "Cannot revive if not dead"}) unless user.stats.hp > 0
|
||||
return cb?({code:400, message: "Cannot revive if not dead"}) unless user.stats.hp <= 0
|
||||
|
||||
# Reset stats
|
||||
_.merge user.stats, {hp:50, exp:0, gp:0}
|
||||
|
|
|
|||
Loading…
Reference in a new issue