mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont give cape to dead players in end fight
This commit is contained in:
parent
a8c9d62da0
commit
e3a8d390c7
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ function module.on_world_update()
|
|||
local ent = player.entity
|
||||
local x, y = EntityGetTransform(ent)
|
||||
local notplayer = EntityHasTag(ent, "ew_notplayer")
|
||||
if notplayer and GameHasFlagRun("ending_game_completed") then
|
||||
goto continue
|
||||
end
|
||||
if x == nil or not EntityGetIsAlive(ent) or (not notplayer and EntityHasTag(ent, "polymorphed")) then
|
||||
goto continue
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue