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

High level Phase Door & Teleport will indicate which targetting does what

git-svn-id: http://svn.net-core.org/repos/t-engine4@2133 51575b47-30f0-44d4-a5cc-537603b46e54
parent bf599e36
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ newTalent{
action = function(self, t)
local target = self
if self:getTalentLevel(t) >= 4 then
game.logPlayer(self, "Selects a target to teleport...")
local tg = {default_target=self, type="hit", nowarning=true, range=10, first_target="friend"}
local tx, ty = self:getTarget(tg)
if tx then
......@@ -58,6 +59,7 @@ newTalent{
local rad = t.getRange(self, t)
local radius = t.getRadius(self, t)
if self:getTalentLevel(t) >= 5 then
game.logPlayer(self, "Selects a teleport location...")
local tg = {type="ball", nolock=true, pass_terrain=true, nowarning=true, range=rad, radius=radius, requires_knowledge=false}
x, y = self:getTarget(tg)
if not x then return nil end
......@@ -112,6 +114,7 @@ newTalent{
local target = self
if self:getTalentLevel(t) >= 5 then
game.logPlayer(self, "Selects a target to teleport...")
local tg = {default_target=self, type="hit", nowarning=true, range=10, first_target="friend"}
local tx, ty = self:getTarget(tg)
if tx then
......@@ -135,6 +138,7 @@ newTalent{
local x, y = self.x, self.y
if self:getTalentLevel(t) >= 4 then
game.logPlayer(self, "Selects a teleport location...")
local tg = {type="ball", nolock=true, pass_terrain=true, nowarning=true, range=t.getRange(self, t), radius=t.getRadius(self, t), requires_knowledge=false}
x, y = self:getTarget(tg)
if not x then return nil end
......
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