diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index ea7af2d1f9..3ed9ab4b4b 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -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" diff --git a/script/index.coffee b/script/index.coffee index 45dd9794b9..08ce7f7d02 100644 --- a/script/index.coffee +++ b/script/index.coffee @@ -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}