From 2fa0e9d38f5a59f148270f9410735b8fef4e387e Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Sun, 27 Nov 2011 20:16:31 +0000 Subject: [PATCH] fix git-svn-id: http://svn.net-core.org/repos/t-engine4@4677 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/data/talents/misc/inscriptions.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/game/modules/tome/data/talents/misc/inscriptions.lua b/game/modules/tome/data/talents/misc/inscriptions.lua index 6e976df283..2995ce1c0f 100644 --- a/game/modules/tome/data/talents/misc/inscriptions.lua +++ b/game/modules/tome/data/talents/misc/inscriptions.lua @@ -461,24 +461,18 @@ newInscription{ is_spell = true, no_energy = true, tactical = { BUFF = 4 }, - on_pre_use = function(self, t) - local ok, data = pcall(self.getInscriptionData, self, t.short_name) - return ok and data and data.nb_uses and data.nb_uses > 0 - end, action = function(self, t) local data = self:getInscriptionData(t.short_name) self:setEffect(self.EFF_SPEED, data.dur, {power=(data.power + data.inc_stat) / 100}) - self:usedInscription(t.short_name) return true end, info = function(self, t) local data = self:getInscriptionData(t.short_name) - return ([[Activate the rune to increase your global speed by %d%% for %d turns. - Charges remaining: %d]]):format(data.power + data.inc_stat, data.dur, data.nb_uses) + return ([[Activate the rune to increase your global speed by %d%% for %d turns.]]):format(data.power + data.inc_stat, data.dur) end, short_info = function(self, t) local data = self:getInscriptionData(t.short_name) - return ([[speed %d%% for %d turns; %d charges]]):format(data.power + data.inc_stat, data.dur, data.nb_uses) + return ([[speed %d%% for %d turns]]):format(data.power + data.inc_stat, data.dur) end, } -- GitLab