refactor: harm

This commit is contained in:
cha0s 2020-01-17 02:30:22 -06:00
parent cbd3c21cd3
commit f0bc544aed

View File

@ -113,7 +113,7 @@ export class Alive extends decorate(Trait) {
return { return {
tookHarm: (harm, source) => { tookHarm: (harm, source) => {
if (harm.harmSpec.power > 0) { if (harm.isHarm) {
this.entity.life -= harm.amount; this.entity.life -= harm.amount;
} }
else { else {