Skip to content

Commit ff262c0

Browse files
committed
Used mod source in defence calc to fix breakdown sourcing logic on hover
1 parent 14c9507 commit ff262c0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Modules/CalcDefence.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,11 @@ function calcs.defence(env, actor)
762762
end
763763
end
764764
if modDB:Flag(nil, "MaximumEnergyShieldIncreasedByChanceToBlockSpellDamage") then
765-
modDB:NewMod("EnergyShield", "INC", output.SpellBlockChance)
765+
for i, value in ipairs(modDB:Tabulate("FLAG", nil, "MaximumEnergyShieldIncreasedByChanceToBlockSpellDamage")) do
766+
local mod = value.mod
767+
modDB:NewMod("EnergyShield", "INC", output.SpellBlockChance, mod.source)
768+
break
769+
end
766770
end
767771
-- Primary defences: Energy shield, evasion and armour
768772
do

0 commit comments

Comments
 (0)