chore: unroll
This commit is contained in:
parent
07a0cfea63
commit
4a28cabc26
|
@ -41,12 +41,14 @@ export class Damaging extends Trait {
|
||||||
const isCollidingWith = this.entity.isCollidingWith;
|
const isCollidingWith = this.entity.isCollidingWith;
|
||||||
for (let i = 0; i < isCollidingWith.length; i++) {
|
for (let i = 0; i < isCollidingWith.length; i++) {
|
||||||
const entity = isCollidingWith[i];
|
const entity = isCollidingWith[i];
|
||||||
if (entity.is('vulnerable') && !entity.isInvulnerable) {
|
if (entity.is('vulnerable')) {
|
||||||
|
if (!entity.isInvulnerable) {
|
||||||
entity.takeDamageFrom(this.entity);
|
entity.takeDamageFrom(this.entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user