fix: destroying alive

This commit is contained in:
cha0s 2021-02-12 05:39:14 -06:00
parent 6a8e8f410e
commit 66ff06bd2b

View File

@ -118,7 +118,7 @@ export default (latus) => class Alive extends decorate(Trait) {
hooks() {
return {
destroy: () => () => this.#hasDied,
destroy: () => () => (this.#isDying ? this.#hasDied : true),
};
}