Skip to content
Snippets Groups Projects
Commit 7321ffc1 authored by DarkGod's avatar DarkGod
Browse files

moar

parent b4b880b3
No related branches found
No related tags found
No related merge requests found
......@@ -478,7 +478,7 @@ newEffect{
if eff.timer > 100 then
eff.timer = eff.timer - 100
local distance = core.fov.distance(self.x, self.y, eff.src.x, eff.src.y)
local distance = self.x and eff.src.x and core.fov.distance(self.x, self.y, eff.src.x, eff.src.y) or 1000
if math.floor(distance) > 1 and distance <= eff.range then
-- in range but not adjacent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment