working on wave beam

This commit is contained in:
lilgreenland
2020-02-12 14:35:20 -08:00
parent c06f020e8b
commit fddcfc8aed
3 changed files with 4 additions and 4 deletions

View File

@@ -946,7 +946,7 @@ const mobs = {
this.health -= dmg
//this.fill = this.color + this.health + ')';
this.onDamage(dmg); //custom damage effects
if (this.health < 0.05) this.death();
if (this.health < 0.05 && this.alive) this.death();
}
},
onDamage() {