mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Update SpellView.coffee
Fixed issue #1950 so attack defaults to enemy if player has findNearest or findNearestEnemy
This commit is contained in:
parent
6ab74f9dab
commit
0496c9338d
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ module.exports = class SpellView extends CocoView
|
|||
meta: 'press enter'
|
||||
name: doc.name
|
||||
tabTrigger: doc.snippets[e.language].tab
|
||||
if doc.name is 'findNearestEnemy'
|
||||
if doc.name is 'findNearestEnemy' or doc.name is 'findNearest'
|
||||
# Remember if we have findNearestEnemy so attack snippet can be updated
|
||||
haveFindNearestEnemy = true
|
||||
if doc.name is 'attack'
|
||||
|
|
Loading…
Reference in a new issue