Commit 832b90f7de223db8524c0da2cebba2f6a27cdec6

Authored by dg
1 parent 17d127a1

*whips tigereye*


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