Commit 1d6dd055 authored by Diarandor's avatar Diarandor

Fix wrong direction of acidballs for spiderskull enemies

parent 40038ea1
......@@ -193,7 +193,7 @@ function enemy:throw_acidball()
sol.audio.play_sound("walk_on_water")
-- Create acidball projectile.
local x, y, layer = enemy:get_position()
local dir = enemy:get_direction4_to(hero)
local dir = sprite:get_direction()
local angle = dir * math.pi / 2
local x, y = x + 16 * math.cos(angle), y - 16 * math.sin(angle)
local acidball = map:create_enemy({x = x, y = y, layer = layer, direction = dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment