From 2d9606a8eb027c5ef1b203f98a317a83e90c5745 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Tue, 11 Feb 2014 12:16:53 -0800 Subject: [PATCH] includeFlow only on the currently selected Thang. --- app/lib/God.coffee | 3 --- app/views/play/level/tome/tome_view.coffee | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/God.coffee b/app/lib/God.coffee index 1fc29ae72..d09be3408 100644 --- a/app/lib/God.coffee +++ b/app/lib/God.coffee @@ -247,9 +247,6 @@ class Angel clearTimeout @abortTimeout @free() @god.angelAborted @ - if @god.dead - @worker.terminate() - @worker = null when 'reportIn' clearTimeout @condemnTimeout else diff --git a/app/views/play/level/tome/tome_view.coffee b/app/views/play/level/tome/tome_view.coffee index ef816348f..d29b8e056 100644 --- a/app/views/play/level/tome/tome_view.coffee +++ b/app/views/play/level/tome/tome_view.coffee @@ -112,6 +112,9 @@ module.exports = class TomeView extends View @cast() cast: -> + for spellKey, spell of @spells + for thangID, spellThang of spell.thangs + spellThang.aether.options.includeFlow = spellThang.aether.originalOptions.includeFlow = spellThang is @spellView?.spellThang Backbone.Mediator.publish 'tome:cast-spells', spells: @spells onToggleSpellList: (e) ->