Skip to content
Snippets Groups Projects
Commit 28f9af51 authored by DarkGod's avatar DarkGod
Browse files

Telekinetic Leap can not enter vaults

parent a461bd75
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ newTalent{
if not x or not y then return nil end
end
local fx, fy = util.findFreeGrid(x, y, 5, true, {[Map.ACTOR]=true})
if not fx then
if not fx or not self:hasLOS(fx, fy) then
return
end
game.logSeen(self, "%s performs a telekinetically enhanced leap!", self.name:capitalize())
......
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