From bee0eb09a17c602ffda6265b092725a7671f6575 Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 4 Dec 2012 21:37:50 +0000 Subject: [PATCH] better git-svn-id: http://svn.net-core.org/repos/t-engine4@5922 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/modules/tome/class/interface/Combat.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua index 25c1379b2e..4370602d53 100644 --- a/game/modules/tome/class/interface/Combat.lua +++ b/game/modules/tome/class/interface/Combat.lua @@ -1256,6 +1256,11 @@ function _M:physicalCrit(dam, weapon, target, atk, def, add_chance, crit_power_a local chance = self:combatCrit(weapon) + (add_chance or 0) crit_power_add = crit_power_add or 0 + + if target:hasEffect(target.EFF_DISMAYED) then + chance = 100 + end + local crit = false if self:knowTalent(self.T_BACKSTAB) and target:attr("stunned") then chance = chance + self:getTalentLevel(self.T_BACKSTAB) * 10 end @@ -1271,10 +1276,6 @@ function _M:physicalCrit(dam, weapon, target, atk, def, add_chance, crit_power_a chance = chance - target:combatCritReduction() - if target:hasEffect(target.EFF_DISMAYED) then - chance = 100 - end - -- Scoundrel's Strategies if self:attr("cut") and target:knowTalent(self.T_SCOUNDREL) then chance = chance - (5 + (target:getTalentLevel(self.T_SCOUNDREL)*5)) -- GitLab