Update SpellView.coffee

Fixed issue #1950 so attack defaults to enemy if player has findNearest or findNearestEnemy
This commit is contained in:
nemoyatpeace 2014-12-18 09:10:07 +08:00
parent 6ab74f9dab
commit 0496c9338d

View file

@ -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'