Skip to content
Snippets Groups Projects
Commit c0842927 authored by dg's avatar dg
Browse files

bleh

git-svn-id: http://svn.net-core.org/repos/t-engine4@4346 51575b47-30f0-44d4-a5cc-537603b46e54
parent d2b2da3e
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ newTalent{
local dist = core.fov.distance(typ.source_actor.x, typ.source_actor.y, lx, ly)
if math.floor(dist - typ.range + 0.5) > 0 then block_from_range = true end
end
if a then return block_from_range or self:reactionToward(a) < 0, hit, hit_radius
if a then return block_from_range or (self and self:reactionToward(a) < 0), hit, hit_radius
else return block, hit, hit_radius end
end,
}
......
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