mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Disabled autocast even more.
This commit is contained in:
parent
87cde17650
commit
d2491dba4f
1 changed files with 3 additions and 8 deletions
|
@ -39,8 +39,8 @@ module.exports = class CastButtonView extends CocoView
|
|||
@castButton = $('.cast-button', @$el)
|
||||
@castButtonGroup = $('.cast-button-group', @$el)
|
||||
@castOptions = $('.autocast-delays', @$el)
|
||||
delay = me.get('autocastDelay')
|
||||
delay ?= 90019001
|
||||
#delay = me.get('autocastDelay') # No more autocast
|
||||
delay = 90019001
|
||||
@setAutocastDelay delay
|
||||
|
||||
attachTo: (spellView) ->
|
||||
|
@ -61,12 +61,6 @@ module.exports = class CastButtonView extends CocoView
|
|||
else
|
||||
Backbone.Mediator.publish 'tome:manual-cast', {realTime: true}
|
||||
|
||||
onCastOptionsClick: (e) =>
|
||||
Backbone.Mediator.publish 'tome:focus-editor', {}
|
||||
@castButtonGroup.removeClass 'open'
|
||||
@setAutocastDelay $(e.target).attr 'data-delay'
|
||||
false
|
||||
|
||||
onSpellChanged: (e) ->
|
||||
@updateCastButton()
|
||||
|
||||
|
@ -111,6 +105,7 @@ module.exports = class CastButtonView extends CocoView
|
|||
setAutocastDelay: (delay) ->
|
||||
#console.log 'Set autocast delay to', delay
|
||||
return unless delay
|
||||
delay = 90019001 # No more autocast
|
||||
@autocastDelay = delay = parseInt delay
|
||||
me.set('autocastDelay', delay)
|
||||
me.patch()
|
||||
|
|
Loading…
Reference in a new issue