From 04ef5827ac57806607ee67b73f905652e0872c86 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 10 Dec 2012 12:23:22 +0000
Subject: [PATCH] fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6037 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/interface/Combat.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/interface/Combat.lua b/game/modules/tome/class/interface/Combat.lua
index 2fe80b686c..aefe3fe22b 100644
--- a/game/modules/tome/class/interface/Combat.lua
+++ b/game/modules/tome/class/interface/Combat.lua
@@ -1009,8 +1009,9 @@ function _M:combatAttackRanged(weapon, ammo)
 	elseif weapon and weapon.wil_attack then stats = self:getWil(100, true) - 10
 	else stats = self:getDex(100, true) - 10
 	end
+	local d = self:combatAttackBase(weapon, ammo) + stats + (self.combat_atk_ranged or 0)
 	if self:attr("dazed") then d = d / 2 end
-	return self:rescaleCombatStats(self:combatAttackBase(weapon, ammo) + stats + (self.combat_atk_ranged or 0))
+	return self:rescaleCombatStats(d)
 end
 
 --- Gets the attack using only strength
-- 
GitLab