diff --git a/app/schemas/subscriptions/play.coffee b/app/schemas/subscriptions/play.coffee index 608086eb1..4c7c05fa5 100644 --- a/app/schemas/subscriptions/play.coffee +++ b/app/schemas/subscriptions/play.coffee @@ -37,6 +37,7 @@ module.exports = 'level:set-time': c.object {}, time: {type: 'number', minimum: 0} ratio: {type: 'number', minimum: 0, maximum: 1} + ratioOffset: {type: 'number'} frameOffset: {type: 'integer'} scrubDuration: {type: 'integer', minimum: 0} diff --git a/app/views/play/level/tome/TomeView.coffee b/app/views/play/level/tome/TomeView.coffee index c8014f6a3..923c5a1ab 100644 --- a/app/views/play/level/tome/TomeView.coffee +++ b/app/views/play/level/tome/TomeView.coffee @@ -222,7 +222,7 @@ module.exports = class TomeView extends CocoView spell reloadAllCode: -> - spell.view.reloadCode false for spellKey, spell of @spells when spell.team is me.team or (spell.team in ['common', 'neutral', null]) + spell.view.reloadCode false for spellKey, spell of @spells when spell.view and (spell.team is me.team or (spell.team in ['common', 'neutral', null])) Backbone.Mediator.publish 'tome:cast-spells', spells: @spells, preload: false, realTime: false updateLanguageForAllSpells: (e) ->