Hacky fix for Kithgard Mastery walls not updating properly after dynamically being spawned.

This commit is contained in:
Nick Winter 2015-05-18 14:30:17 -07:00
parent 46f90d6c7d
commit 4c2c896496

View file

@ -276,6 +276,8 @@ module.exports = class LankBoss extends CocoClass
onNewWorld: (e) ->
@world = @options.world = e.world
# Clear obstacle cache for this level, since we are spawning walls dynamically
@cachedObstacles = false if e.finished and /kithgard-mastery/.test window.location.href
play: ->
lank.play() for lank in @lankArray