Skip to content

Commit 3468217

Browse files
author
LocalIdentity
committed
Fix crash with Bonemeld
1 parent 3048e5f commit 3468217

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Modules/CalcDefence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ function calcs.defence(env, actor)
605605
local dotFinal = m_max(m_min(dotTotal, max), min)
606606
local totemFinal = m_max(m_min(totemTotal, totemMax), min)
607607

608-
if modDB:Sum("BASE", nil, "ResistanceAddedToMinions") > 0 then
608+
if env.minion and modDB:Sum("BASE", nil, "ResistanceAddedToMinions") > 0 then
609609
env.minion.modDB:NewMod(elem.."Resist", "BASE", m_floor(final * modDB:Sum("BASE", nil, "ResistanceAddedToMinions") / 100), "Player")
610610
end
611611

0 commit comments

Comments
 (0)