Try a vanilla CoffeeScript (haha) solution
This commit is contained in:
+1
-3
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user