diff --git a/game/modules/tome/data/talents/techniques/combat-techniques.lua b/game/modules/tome/data/talents/techniques/combat-techniques.lua index b135d65558bfb6bbc779812178e06e28f3c4e169..646f7dc0a3e84187ea4af4def179c04ed96e56ac 100644 --- a/game/modules/tome/data/talents/techniques/combat-techniques.lua +++ b/game/modules/tome/data/talents/techniques/combat-techniques.lua @@ -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 diff --git a/game/modules/tome/data/talents/techniques/field-control.lua b/game/modules/tome/data/talents/techniques/field-control.lua index 7e2f80cb762016f39e7ecea7e235f4e807ebdab6..3e26d33b22ce64dd0bb6f10b586dde80b675730f 100644 --- a/game/modules/tome/data/talents/techniques/field-control.lua +++ b/game/modules/tome/data/talents/techniques/field-control.lua @@ -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 diff --git a/game/modules/tome/data/talents/techniques/mobility.lua b/game/modules/tome/data/talents/techniques/mobility.lua index e95c33b2d90f70cb2c4140a264d163154b372e8e..53a149865a2a78dd1bf2054e6ff6c2f68154bf29 100644 --- a/game/modules/tome/data/talents/techniques/mobility.lua +++ b/game/modules/tome/data/talents/techniques/mobility.lua @@ -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