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

better

git-svn-id: http://svn.net-core.org/repos/t-engine4@5570 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9be8a741
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,11 @@ newTalent{
tactical = { ATTACK = { weapon = 1, stun = 1 }, CLOSEIN = 3 },
requires_target = true,
range = function(self, t) return math.floor(5 + self:getTalentLevelRaw(t)) end,
on_pre_use = function(self, t)
if self:attr("never_move") then return false end
return true
end,
action = function(self, t)
if self:attr("never_move") then game.logPlayer(self, "You can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x or not y or not target then return nil end
......
......@@ -29,8 +29,11 @@ newTalent{
range = 7,
tactical = { ESCAPE = 2 },
requires_target = true,
on_pre_use = function(self, t)
if self:attr("never_move") then return false end
return true
end,
action = function(self, t)
if self:attr("never_move") then game.logPlayer(self, "You can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x or not y or not target then return nil end
......
......@@ -30,8 +30,11 @@ newTalent{
requires_target = true,
getDamage = function(self, t) return self:combatTalentWeaponDamage(t, 0.4, 1) end,
getDist = function(self, t) return 1 + math.ceil(self:getTalentLevel(t) / 2) end,
on_pre_use = function(self, t)
if self:attr("never_move") then return false end
return true
end,
action = function(self, t)
if self:attr("never_move") then game.logPlayer(self, "You can not do that currently.") return end
local tg = {type="hit", range=self:getTalentRange(t)}
local x, y, target = self:getTarget(tg)
if not x or not y or not target 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