Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Modules/CalcDefence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ function calcs.defence(env, actor)

-- Add weapon dependent mods as unflagged mods if the correct weapons are equipped
for _, value in ipairs(modDB:Tabulate("BASE", weaponsCfg, "SpellSuppressionChance")) do
if bit.band(value.mod.flags and weaponsCfg.flags) == value.mod.flags then
if value.mod.flags ~= 0 and bit.band(value.mod.flags and weaponsCfg.flags) == value.mod.flags then
local mod = copyTable(value.mod)
mod.flags = 0
modDB:AddMod(mod)
Expand Down