Skip to content
Snippets Groups Projects
Commit 014dcd18 authored by DarkGod's avatar DarkGod
Browse files

Fix shield's power being wrong in their name but right in their description

parent 0c7b55b6
No related branches found
No related tags found
No related merge requests found
......@@ -412,7 +412,7 @@ end
function _M:descAttribute(attr)
local power = function(c)
if config.settings.tome.advanced_weapon_stats then
return ("%d%% power"):tformat(math.floor(game.player:combatDamagePower(self.combat)*100))
return ("%d%% power"):tformat(math.floor(game.player:combatDamagePower(self.special_combat or self.combat)*100))
else
return ("%d-%d power"):tformat(c.dam, (c.dam*(c.damrange or 1.1)))
end
......
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