Skip to content

Commit eca5540

Browse files
author
LocalIdentity
committed
Fix Threshold using wrong actor
The change was not using target as a backup when ThresholdActor was not set
1 parent 4e2b94d commit eca5540

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/ModStore.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function ModStoreClass:EvalMod(mod, cfg, globalLimits)
373373
else
374374
mult = GetMultiplier(target, tag.var, cfg)
375375
end
376-
local threshold = tag.threshold or GetMultiplier(thresholdTarget, tag.thresholdVar, cfg)
376+
local threshold = tag.threshold or GetMultiplier(tag.thresholdActor and thresholdTarget or target, tag.thresholdVar, cfg)
377377
if (tag.upper and mult > threshold) or (tag.equals and mult ~= threshold) or (not (tag.upper and tag.exact) and mult < threshold) then
378378
return
379379
end

0 commit comments

Comments
 (0)