diff --git a/common/combat/damaging.trait.js b/common/combat/damaging.trait.js index 815fb61..6d79faa 100644 --- a/common/combat/damaging.trait.js +++ b/common/combat/damaging.trait.js @@ -39,8 +39,8 @@ export class Damaging extends Trait { tick(elapsed) { if (AVOCADO_SERVER) { const isCollidingWith = this.entity.isCollidingWith; - for (let i = 0; i < isCollidingWith.length; ++i) { - const entity = isCollidingWith[i]; + for (const uuid in isCollidingWith) { + const entity = isCollidingWith[uuid]; if (entity.is('vulnerable') && !entity.isInvulnerable) { entity.takeDamageFrom(this.entity); }