From f1c22c8406ef66fe09d57aaaa13e1330d93e4517 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 20 Apr 2019 19:45:34 -0500 Subject: [PATCH] fix: fast dmg can give us remove steps --- common/combat/vulnerable.trait.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/combat/vulnerable.trait.js b/common/combat/vulnerable.trait.js index d76b3b3..19d6e86 100644 --- a/common/combat/vulnerable.trait.js +++ b/common/combat/vulnerable.trait.js @@ -134,6 +134,9 @@ export class Vulnerable extends Trait { const stateKeyParts = stateKey.split('/'); switch (stateKeyParts[0]) { case 'damageList': + if (!value) { + break; + } for (let i = 0; i < value.length; ++i) { const damage = value[i]; if (this.entity.is('listed')) {