mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
dont fear walls/shield as notplayer
This commit is contained in:
parent
594af87651
commit
4c6abf6424
1 changed files with 5 additions and 1 deletions
|
@ -1345,7 +1345,11 @@ local function stay_away_from()
|
|||
for _, proj in ipairs(EntityGetInRadiusWithTag(mx, my, 256, "projectile")) do
|
||||
if not table.contains(state.ignore, proj) then
|
||||
local com = EntityGetFirstComponentIncludingDisabled(proj, "ProjectileComponent")
|
||||
if EntityGetFilename(proj) == "data/entities/projectiles/deck/regeneration_field.xml"
|
||||
local name = EntityGetFilename(proj)
|
||||
if name == "data/entities/projectiles/deck/regeneration_field.xml"
|
||||
or name == "data/entities/projectiles/deck/shield_field.xml"
|
||||
or name == "data/entities/projectiles/deck/temporary_wall.xml"
|
||||
or name == "data/entities/projectiles/deck/temporary_platform.xml"
|
||||
or (com ~= nil and ComponentGetValue2(com, "mShooterHerdId") == state.herd_id
|
||||
and (ComponentGetValue2(com, "friendly_fire")
|
||||
or (ComponentGetValue2(com, "collide_with_shooter_frames") == -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue