mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
fix a targeting error with notplayer
This commit is contained in:
parent
b96c0437ca
commit
1f3382dace
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ local function is_suitable_target(entity)
|
|||
end
|
||||
|
||||
local function choose_wand_actions()
|
||||
if (state.attack_wand ~= nil or has_bad_potion) and target ~= nil and EntityGetIsAlive(target) then
|
||||
if (state.attack_wand ~= nil or bad_potion ~= nil) and target ~= nil and EntityGetIsAlive(target) then
|
||||
local t_x, t_y = EntityGetFirstHitboxCenter(target)
|
||||
if t_x == nil then
|
||||
t_x, t_y = EntityGetTransform(target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue