mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
22efc269b5
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ module.exports = class Zatanna
|
||||||
# TODO: Generalize this snippet replacement
|
# TODO: Generalize this snippet replacement
|
||||||
# TODO: Where should this logic live, and what format should it be in?
|
# TODO: Where should this logic live, and what format should it be in?
|
||||||
if attackEntry?
|
if attackEntry?
|
||||||
unless haveFindNearestEnemy or haveFindNearest or @options.level.get('slug') in ['known-enemy', 'course-known-enemy']
|
unless haveFindNearestEnemy or haveFindNearest or level.get('slug') in ['known-enemy', 'course-known-enemy']
|
||||||
# No findNearestEnemy, so update attack snippet to string-based target
|
# No findNearestEnemy, so update attack snippet to string-based target
|
||||||
# (On Known Enemy, we are introducing enemy2 = "Gert", so we want them to do attack(enemy2).)
|
# (On Known Enemy, we are introducing enemy2 = "Gert", so we want them to do attack(enemy2).)
|
||||||
attackEntry.content = attackEntry.content.replace '${1:enemy}', '"${1:Enemy Name}"'
|
attackEntry.content = attackEntry.content.replace '${1:enemy}', '"${1:Enemy Name}"'
|
||||||
|
|
Loading…
Reference in a new issue