Skip to content
Snippets Groups Projects
Commit 04ef5827 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@6037 51575b47-30f0-44d4-a5cc-537603b46e54
parent 87bbe84f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment