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

Disengage and Hack'n'Back can not be used when immobile

git-svn-id: http://svn.net-core.org/repos/t-engine4@5568 51575b47-30f0-44d4-a5cc-537603b46e54
parent 012048ef
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ newTalent{
tactical = { ESCAPE = 2 },
requires_target = true,
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
......
......@@ -31,6 +31,7 @@ newTalent{
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,
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