Skip to content
Snippets Groups Projects
Commit 75e6ac40 authored by DarkGod's avatar DarkGod
Browse files

Tumble can not go over walls anymore

parent 00eec763
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ newTalent {
local x, y, target = self:getTarget(tg)
if not x or not y then return end
if self.x == x and self.y == y then return end
if core.fov.distance(self.x, self.y, x, y) > self:getTalentRange(t) then return end
if core.fov.distance(self.x, self.y, x, y) > self:getTalentRange(t) or not self:hasLOS(x, y) then return end
if target or game.level.map:checkEntity(x, y, Map.TERRAIN, "block_move", self) then
game.logPlayer(self, "You must have an empty space to roll to.")
......
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