mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
fix predatorytunicate always spitting out to the left, now it's the facing direction
This commit is contained in:
parent
0a3f57486b
commit
bbc6636c65
1 changed files with 5 additions and 1 deletions
|
@ -190,7 +190,11 @@ function exitState(me)
|
|||
elseif entity_isState(me, STATE_TRAPPED) then
|
||||
--entity_addVel(v.trappedEnt, -800, 0)
|
||||
if v.trappedEnt ~= 0 then
|
||||
entity_push(v.trappedEnt, -800, 0, 1)
|
||||
local pushx = -800 -- left
|
||||
if entity_isfh(me) then -- facing right?
|
||||
pushx = -pushx
|
||||
end
|
||||
entity_push(v.trappedEnt, pushx, 0, 1)
|
||||
end
|
||||
v.trappedEnt = 0
|
||||
if v.trapDelay == 0 then
|
||||
|
|
Loading…
Reference in a new issue