1
0
Fork 0
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:
fgenesis 2023-03-06 00:54:28 +01:00
parent 0a3f57486b
commit bbc6636c65

View file

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