mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-25 14:04:54 -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)
|
@castButton = $('.cast-button', @$el)
|
||||||
@castButtonGroup = $('.cast-button-group', @$el)
|
@castButtonGroup = $('.cast-button-group', @$el)
|
||||||
@castOptions = $('.autocast-delays', @$el)
|
@castOptions = $('.autocast-delays', @$el)
|
||||||
delay = me.get('autocastDelay')
|
#delay = me.get('autocastDelay') # No more autocast
|
||||||
delay ?= 90019001
|
delay = 90019001
|
||||||
@setAutocastDelay delay
|
@setAutocastDelay delay
|
||||||
|
|
||||||
attachTo: (spellView) ->
|
attachTo: (spellView) ->
|
||||||
|
@ -61,12 +61,6 @@ module.exports = class CastButtonView extends CocoView
|
||||||
else
|
else
|
||||||
Backbone.Mediator.publish 'tome:manual-cast', {realTime: true}
|
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) ->
|
onSpellChanged: (e) ->
|
||||||
@updateCastButton()
|
@updateCastButton()
|
||||||
|
|
||||||
|
@ -111,6 +105,7 @@ module.exports = class CastButtonView extends CocoView
|
||||||
setAutocastDelay: (delay) ->
|
setAutocastDelay: (delay) ->
|
||||||
#console.log 'Set autocast delay to', delay
|
#console.log 'Set autocast delay to', delay
|
||||||
return unless delay
|
return unless delay
|
||||||
|
delay = 90019001 # No more autocast
|
||||||
@autocastDelay = delay = parseInt delay
|
@autocastDelay = delay = parseInt delay
|
||||||
me.set('autocastDelay', delay)
|
me.set('autocastDelay', delay)
|
||||||
me.patch()
|
me.patch()
|
||||||
|
|
Loading…
Reference in a new issue