mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
17 lines
No EOL
505 B
Lua
17 lines
No EOL
505 B
Lua
function damage_about_to_be_received( damage, x, y, entity_thats_responsible, critical_hit_chance )
|
|
local dtypes = GetDamageDetails().damage_types
|
|
if GameHasFlagRun("ew_flag_this_is_host") and dtypes == 1
|
|
and entity_thats_responsible ~= GameGetWorldStateEntity() then
|
|
return damage, 0
|
|
end
|
|
|
|
if entity_thats_responsible ~= GameGetWorldStateEntity() then
|
|
return 2^-128, 0
|
|
end
|
|
|
|
if damage < 0 then
|
|
return -2^-128, 0
|
|
end
|
|
|
|
return damage, 0
|
|
end |