From 39a1ceb6928eccaca06350d7fd8dd673de9145e3 Mon Sep 17 00:00:00 2001 From: bgkillas Date: Sat, 16 Nov 2024 23:31:38 -0500 Subject: [PATCH] fix hp as notplayer with glass cannon --- quant.ew/files/system/local_health/local_health.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quant.ew/files/system/local_health/local_health.lua b/quant.ew/files/system/local_health/local_health.lua index 87bfea92..8329705b 100644 --- a/quant.ew/files/system/local_health/local_health.lua +++ b/quant.ew/files/system/local_health/local_health.lua @@ -281,6 +281,8 @@ local function player_died() inventory_helper.set_item_data(item_data, ctx.my_player) remove_inventory_tags() perk_fns.update_perks_for_entity(perk_data, ctx.my_player.entity, allow_notplayer_perk) + util.set_ent_health_cap(ctx.my_player.entity, max_hp) + util.set_ent_health(ctx.my_player.entity, {max_hp, max_hp}) rpc.add_nickname_change_cursor() end