Cacos interdimensionals done!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user