From de8facd58e96e55894de7538f99232d615fb8bf6 Mon Sep 17 00:00:00 2001 From: hairlessbear Date: Thu, 23 Apr 2015 20:12:29 -0400 Subject: [PATCH] Dailies reset without causing damage when resting at Inn --- common/script/index.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/script/index.coffee b/common/script/index.coffee index a787f43286..facac613bb 100644 --- a/common/script/index.coffee +++ b/common/script/index.coffee @@ -1483,10 +1483,11 @@ api.wrap = (user, main=true) -> _.merge plan.consecutive, {count:0, offset:0, gemCapExtra:0} user.markModified? 'purchased.plan' - # User is resting at the inn. Used to be we un-checked each daily without performing calculation (see commits before fb29e35) - # but to prevent abusing the inn (http://goo.gl/GDb9x) we now do *not* calculate dailies, and simply set lastCron to today + # User is resting at the inn. On cron, buffs are cleared and each daily is unchecked without performing damage (fixes issue #5070) if user.preferences.sleep is true user.stats.buffs = clearBuffs + user.dailys.forEach (daily) -> + daily.completed = false return # Tally each task