Try a vanilla CoffeeScript (haha) solution

This commit is contained in:
Sabe Jones
2013-12-24 17:24:05 -06:00
parent 50ffe4dcda
commit baa2e2a8fd
2 changed files with 7 additions and 7 deletions
+1 -3
View File
@@ -408,9 +408,7 @@ api.wrap = (user) ->
# Turn tasks yellow, zero out streaks
_.each user.tasks, (task) ->
task.value = 0
_.each user.tasks, (task) ->
if task.type = 'daily'
task.streak = 0
task.streak = 0 for task in user.tasks when task.type is 'daily'
# Reset all dynamic stats
stats = user.stats
stats.buffs = {}