Cacos interdimensionals done!

This commit is contained in:
2026-03-31 21:03:58 +02:00
parent c9a4313e04
commit 1708be71a8
3 changed files with 79 additions and 44 deletions

View File

@@ -183,9 +183,9 @@ function update_game()
if viewp:inside(actor.x, actor.y, actor.w, actor.h) and actor~=abad then
for _, cacau_shot in pairs(cacau.shots()) do
if cacau_shot.alive and collision(actor,cacau_shot) then
if actor.hit ~= nil then
if actor.hit ~= nil and not actor.dying then
actor:hit()
warp.open(actor.x, actor.y)
if actor.can_warp then warp.open(actor) end
cacau:kill(cacau_shot)
end
end