From c0666f31da3f21a689d15ce30e12c0ba0c65f1b4 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sat, 25 Aug 2012 20:29:28 +0000 Subject: [PATCH] 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 --- game/modules/tome/data/talents/techniques/field-control.lua | 1 + game/modules/tome/data/talents/techniques/mobility.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/game/modules/tome/data/talents/techniques/field-control.lua b/game/modules/tome/data/talents/techniques/field-control.lua index 7474d14377..7e2f80cb76 100644 --- a/game/modules/tome/data/talents/techniques/field-control.lua +++ b/game/modules/tome/data/talents/techniques/field-control.lua @@ -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 diff --git a/game/modules/tome/data/talents/techniques/mobility.lua b/game/modules/tome/data/talents/techniques/mobility.lua index 686885bdde..e95c33b2d9 100644 --- a/game/modules/tome/data/talents/techniques/mobility.lua +++ b/game/modules/tome/data/talents/techniques/mobility.lua @@ -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 -- GitLab