From 29aad01697be64661e42cafb52f1009059472e82 Mon Sep 17 00:00:00 2001 From: kgy01 Date: Tue, 25 Mar 2014 08:48:26 -0400 Subject: [PATCH] hide Arrow and Spear if buried use ['Arrow', 'Spear'] for condition --- app/lib/surface/CocoSprite.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/surface/CocoSprite.coffee b/app/lib/surface/CocoSprite.coffee index dd8e57604..8250f4d40 100644 --- a/app/lib/surface/CocoSprite.coffee +++ b/app/lib/surface/CocoSprite.coffee @@ -486,7 +486,7 @@ module.exports = CocoSprite = class CocoSprite extends CocoClass else @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() mark.update() for name, mark of @marks #@thang.effectNames = ['berserk', 'confuse', 'control', 'curse', 'fear', 'poison', 'paralyze', 'regen', 'sleep', 'slow', 'haste']