Merge pull request #687 from kgy01/master

Hide arrow's shadow if buried
This commit is contained in:
Nick Winter 2014-03-26 11:27:11 -07:00
commit aec4669780

View file

@ -486,6 +486,8 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass
else else
@marks[range['name']].toggle false for range in @ranges @marks[range['name']].toggle false for range in @ranges
if @thangType.get('name') in ['Arrow', 'Spear'] and @thang.action is 'die'
@marks.shadow.hide()
mark.update() for name, mark of @marks mark.update() for name, mark of @marks
#@thang.effectNames = ['berserk', 'confuse', 'control', 'curse', 'fear', 'poison', 'paralyze', 'regen', 'sleep', 'slow', 'haste'] #@thang.effectNames = ['berserk', 'confuse', 'control', 'curse', 'fear', 'poison', 'paralyze', 'regen', 'sleep', 'slow', 'haste']
@updateEffectMarks() if @thang?.effectNames?.length or @previousEffectNames?.length @updateEffectMarks() if @thang?.effectNames?.length or @previousEffectNames?.length