refactor: harm
This commit is contained in:
parent
cbd3c21cd3
commit
f0bc544aed
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user