diff --git a/packages/entity/traits/alive.trait.js b/packages/entity/traits/alive.trait.js index 3683dd3..765ce08 100644 --- a/packages/entity/traits/alive.trait.js +++ b/packages/entity/traits/alive.trait.js @@ -113,7 +113,7 @@ export class Alive extends decorate(Trait) { return { tookHarm: (harm, source) => { - if (harm.harmSpec.power > 0) { + if (harm.isHarm) { this.entity.life -= harm.amount; } else {