mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix enemies with wands and very certain spells
This commit is contained in:
parent
f194043b55
commit
eae6d52035
1 changed files with 5 additions and 1 deletions
|
@ -41,5 +41,9 @@ end
|
|||
local orig = GetUpdatedEntityID
|
||||
|
||||
function GetUpdatedEntityID()
|
||||
return EntityGetRootEntity(orig())
|
||||
local ent = EntityGetRootEntity(orig())
|
||||
if EntityHasTag(ent, "ew_synced_entity") then
|
||||
ent = (EntityGetAllChildren(ent) or {0})[1]
|
||||
end
|
||||
return ent
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue