Commit 9e544fe7a8d3db67a7f2e211c639fc30f7ed2744
1 parent
da284f85
Telekinetic Leap respects the talent range
git-svn-id: http://svn.net-core.org/repos/t-engine4@3468 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
3 additions
and
2 deletions
... | ... | @@ -100,8 +100,9 @@ newTalent{ |
100 | 100 | local tg = {default_target=self, type="ball", nolock=true, pass_terrain=false, nowarning=true, range=self:getTalentRange(t), radius=0, requires_knowledge=false} |
101 | 101 | local x, y = self:getTarget(tg) |
102 | 102 | if not x or not y then return nil end |
103 | - --local _ _, _, _, x, y = self:canProject(tg, x, y) | |
104 | - --self:move(x, y, true) | |
103 | + local _ _, x, y = self:canProject(tg, x, y) | |
104 | + if not x or not y then return nil end | |
105 | + | |
105 | 106 | local fx, fy = util.findFreeGrid(x, y, 5, true, {[Map.ACTOR]=true}) |
106 | 107 | if not fx then |
107 | 108 | return | ... | ... |
-
Please register or login to post a comment