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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@6189 51575b47-30f0-44d4-a5cc-537603b46e54
parent e5230577
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ function _M:lineFOV(tx, ty, extra_block, block, sx, sy)
sy = sy or self.y
local act = game.level.map(tx, ty, engine.Map.ACTOR)
local sees_target = core.fov.distance(sx, sy, tx, ty) <= self.sight and game.level.map.lites(tx, ty) or
act and self:canSee(act) and core.fov.distance(sx, sy, tx, ty) <= math.max(self.sight, (self.heightened_senses or 0) + (self.infravision or 0))
act and self:canSee(act) and core.fov.distance(sx, sy, tx, ty) <= math.max(self.sight, math.min(self.sight, (self.heightened_senses or 0) + (self.infravision or 0)))
local darkVisionRange
if self:knowTalent(self.T_DARK_VISION) then
......
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