This commit is contained in:
2026-11-16 23:49:42 -03:00
parent 94b0e3789c
commit eedaa955f6
13 changed files with 148 additions and 2 deletions
+5
View File
@@ -313,6 +313,11 @@ export abstract class LivingEntity extends Entity {
return true;
}
// mods can still cancel it, like any damage
override kill(cause: string) {
this.hurt(Number.MAX_VALUE, { cause, type: "absolute", bypasses_invulnerability: true });
}
// after mods and the hurt cooldown
actually_hurt(amount: number, source: DamageSource) {
// absolute damage, take it and theres no counterplay