fix enemies with wands and very certain spells

This commit is contained in:
bgkillas 2024-10-14 08:19:55 -04:00
parent f194043b55
commit eae6d52035

View file

@ -41,5 +41,9 @@ end
local orig = GetUpdatedEntityID local orig = GetUpdatedEntityID
function 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 end