Merge branch 'master' into production

This commit is contained in:
Rob 2016-07-05 12:35:30 -07:00
commit 22efc269b5

View file

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