dont give cape to dead players in end fight

This commit is contained in:
bgkillas 2024-10-27 09:52:03 -04:00
parent a8c9d62da0
commit e3a8d390c7

View file

@ -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