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

Merge branch '1.6.1-shield-offhand-mult' into 'master'

fix OffHandMult applying to shields

OffHandMult wasn't caring about o.special combat.  
getObjectCombat returns o.special_combat if applicable, making check for T_STONESHIELD and o.subtype == "shield" superfluous.  

See merge request !580
parents c0d63462 0e3a4b07
No related branches found
No related tags found
1 merge request!580fix OffHandMult applying to shields
Pipeline #
......@@ -195,9 +195,9 @@ function _M:attackTarget(target, damtype, mult, noenergy, force_unarmed)
for i = 1, #oh_weaps do
if i == #oh_weaps and double_weapon and offhand then break end
local o = oh_weaps[i]
local offmult = self:getOffHandMult(o.combat, mult)
local combat = self:getObjectCombat(o, "offhand")
if o.special_combat and o.subtype == "shield" and self:knowTalent(self.T_STONESHIELD) then combat = o.special_combat end
local offmult = self:getOffHandMult(combat, mult)
-- no offhand unarmed attacks
if combat and not o.archery then
if combat.use_resources and not self:useResources(combat.use_resources, true) then
......
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