diff --git a/lib/app/score.js b/lib/app/score.js index fb0c024ac3..f75b71200d 100644 --- a/lib/app/score.js +++ b/lib/app/score.js @@ -97,7 +97,7 @@ module.exports = function(user, task, direction, cron) { if (delta > 0 || ((type === 'daily' || type === 'todo') && !cron)) { exp += expModifier(user, delta); money += delta; - } else if (type !== 'reward' && (type !== 'todo' && cron)) { + } else if (type !== 'reward' && type !== 'todo') { hp += hpModifier(user, delta); } updateStats(user, { diff --git a/src/app/score.coffee b/src/app/score.coffee index eaf4aa5d56..0d4578acbd 100644 --- a/src/app/score.coffee +++ b/src/app/score.coffee @@ -93,7 +93,7 @@ module.exports = (user, task, direction, cron) -> exp += expModifier(user, delta) money += delta # Deduct from health (rewards case handled above) - else if type != 'reward' and ( type!='todo' and cron ) + else unless type in ['reward', 'todo'] hp += hpModifier(user, delta) updateStats(user, {hp: hp, exp: exp, money: money})