fix: fast dmg can give us remove steps

This commit is contained in:
cha0s 2019-04-20 19:45:34 -05:00
parent d46bd2a7fa
commit f1c22c8406

View File

@ -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')) {