Skip to content
Snippets Groups Projects
Commit 9e544fe7 authored by dg's avatar dg
Browse files

Telekinetic Leap respects the talent range

git-svn-id: http://svn.net-core.org/repos/t-engine4@3468 51575b47-30f0-44d4-a5cc-537603b46e54
parent da284f85
No related branches found
No related tags found
No related merge requests found
......@@ -100,8 +100,9 @@ newTalent{
local tg = {default_target=self, type="ball", nolock=true, pass_terrain=false, nowarning=true, range=self:getTalentRange(t), radius=0, requires_knowledge=false}
local x, y = self:getTarget(tg)
if not x or not y then return nil end
--local _ _, _, _, x, y = self:canProject(tg, x, y)
--self:move(x, y, true)
local _ _, x, y = self:canProject(tg, x, y)
if not x or not y then return nil end
local fx, fy = util.findFreeGrid(x, y, 5, true, {[Map.ACTOR]=true})
if not fx then
return
......
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