fix notplayer being invincible on poly death

This commit is contained in:
bgkillas 2024-10-12 10:59:34 -04:00
parent 803ecbd380
commit ffb2b9689a

View file

@ -346,7 +346,11 @@ ctx.cap.health = {
else
local ent = end_poly_effect(ctx.my_player.entity)
ctx.my_player.entity = ent
player_died()
polymorph.switch_entity(ent)
async(function()
wait(1)
player_died()
end)
end
end,
}