fix typo in previous commit
This commit is contained in:
Vendored
+1
-1
@@ -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"
|
||||
|
||||
+1
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user