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