mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix teleportitis dodge reacting to team mates projectiles
This commit is contained in:
parent
1565bc3dc6
commit
312d1fde30
1 changed files with 4 additions and 6 deletions
|
@ -28,12 +28,10 @@ local function set_cooldown(on_cooldown, frames)
|
|||
})
|
||||
end
|
||||
|
||||
local genome = EntityGetFirstComponentIncludingDisabled(entity_id, "GenomeDataComponent")
|
||||
local my_herd
|
||||
if genome ~= nil then
|
||||
my_herd = ComponentGetValue(genome, "herd_id")
|
||||
end
|
||||
|
||||
local my_herd = -1
|
||||
edit_component(root_id, "GenomeDataComponent", function(comp,vars)
|
||||
my_herd = ComponentGetValue2( comp, "herd_id" )
|
||||
end)
|
||||
|
||||
-- look for enemy projectiles
|
||||
for _,proj_id in ipairs(EntityGetInRadiusWithTag( pos_x, pos_y, sensor_range, "projectile" )) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue