fix typo in previous commit

This commit is contained in:
Matteo Pagliazzi 2014-11-03 19:55:10 +01:00
parent e692b4b392
commit e788872932
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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}