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

fix phase door & teleport to not be stopped by LOS

git-svn-id: http://svn.net-core.org/repos/t-engine4@695 51575b47-30f0-44d4-a5cc-537603b46e54
parent 5d43c19f
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,6 @@ newTalent{
},
action = function(self, t)
local target = self
if self:getTalentLevel(t) >= 5 then
local tx, ty = self:getTarget{type="hit", range=10}
if tx and ty then
......@@ -39,7 +38,8 @@ newTalent{
local x, y = self.x, self.y
if self:getTalentLevel(t) >= 4 then
x, y = self:getTarget{type="ball", nolock=true, no_restrict=true, range=10 + self:combatSpellpower(0.1), radius=7 - self:getTalentLevel(t)}
local tg = {type="ball", nolock=true, no_restrict=true, range=10 + self:combatSpellpower(0.1), radius=7 - self:getTalentLevel(t)}
x, y = self:getTarget(tg)
if not x then return nil end
-- Target code doesnot restrict the target coordinates to the range, it lets the poject function do it
-- but we cant ...
......@@ -85,7 +85,8 @@ newTalent{
local x, y = self.x, self.y
if self:getTalentLevel(t) >= 4 then
x, y = self:getTarget{type="ball", nolock=true, no_restrict=true, range=100 + self:combatSpellpower(1), radius=20 - self:getTalentLevel(t)}
local tg = {type="ball", nolock=true, no_restrict=true, range=100 + self:combatSpellpower(1), radius=20 - self:getTalentLevel(t)}
x, y = self:getTarget(tg)
if not x then return nil end
-- Target code doesnot restrict the target coordinates to the range, it lets the poject function do it
-- but we cant ...
......
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