fix teleportitis dodge reacting to team mates projectiles

This commit is contained in:
bgkillas 2024-10-30 13:04:22 -04:00
parent 1565bc3dc6
commit 312d1fde30

View file

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