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

plop

git-svn-id: http://svn.net-core.org/repos/t-engine4@4691 51575b47-30f0-44d4-a5cc-537603b46e54
parent a96d77e1
No related branches found
No related tags found
No related merge requests found
......@@ -161,12 +161,15 @@ newTalent{
if not x or not y then return nil end
local _ _, x, y = self:canProject(tg, x, y)
local ox, oy = self.x, self.y
local l = line.new(self.x, self.y, x, y)
local nextx, nexty = l()
if not nextx or not game.level.map:checkEntity(nextx, nexty, Map.TERRAIN, "block_move", self) then return end
self:probabilityTravel(x, y, t.getRange(self, t))
if ox == self.x and oy == self.y then return end
for i = 1, 5 do self:removeObject(self:getInven("QUIVER"), 1) end
game:playSoundNear(self, "talents/arcane")
return true
......
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