hide Arrow and Spear if buried use ['Arrow', 'Spear'] for condition

This commit is contained in:
kgy01 2014-03-25 08:48:26 -04:00
parent a420064bc1
commit 29aad01697

View file

@ -486,7 +486,7 @@ 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') is 'Arrow' or @thangType.get('name') is 'Spear') and @thang.action is 'die' if @thangType.get('name') in ['Arrow', 'Spear'] and @thang.action is 'die'
@marks.shadow.hide() @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']