Skip to content

Commit 86ceabe

Browse files
author
LocalIdentity
committed
Fix Threshold using wrong actor
When using `MultiplierThreshold` I changed it to be able to use a `thresholdActor` but this caused it to not use the correct target if we were only using tag.actor
1 parent ff2f191 commit 86ceabe

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
@@ -394,7 +394,7 @@ function ModStoreClass:EvalMod(mod, cfg, globalLimits)
394394
else
395395
mult = GetMultiplier(target, tag.var, cfg)
396396
end
397-
local threshold = tag.threshold or GetMultiplier(thresholdTarget, tag.thresholdVar, cfg)
397+
local threshold = tag.threshold or GetMultiplier(tag.thresholdActor and thresholdTarget or target, tag.thresholdVar, cfg)
398398
if (tag.upper and mult > threshold) or (tag.equals and mult ~= threshold) or (not (tag.upper and tag.exact) and mult < threshold) then
399399
return
400400
end

0 commit comments

Comments
 (0)