From 25076b7385cd71c22cb2433caa38463ddbac0c75 Mon Sep 17 00:00:00 2001 From: Hekili Date: Wed, 11 Sep 2024 16:43:18 -1000 Subject: [PATCH] Fix #3743 --- Scripts.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts.lua b/Scripts.lua index 994676bf7..53984bad1 100644 --- a/Scripts.lua +++ b/Scripts.lua @@ -645,17 +645,17 @@ do if lhs == ( key .. ".percent" ) or lhs == ( key .. ".pct" ) then if comp == ">" then - return true, "0.01 + " .. lhs .. ".timeTo( " .. key .. ".max * ( " .. rhs .. " / 100 ) )" + return true, "0.01 + " .. key .. ".timeTo( " .. key .. ".max * ( " .. rhs .. " / 100 ) )" elseif moreOrEqual[ comp ] then - return true, lhs .. ".timeTo( " .. key .. ".max * ( " .. rhs .. " / 100 ) )" + return true, key .. ".timeTo( " .. key .. ".max * ( " .. rhs .. " / 100 ) )" end end if rhs == ( key .. ".percent" ) or rhs == ( key .. ".pct" ) then if comp == "<" then - return true, "0.01 + " .. rhs .. ".timeTo( " .. key .. ".max * ( " .. lhs .. " / 100 ) )" + return true, "0.01 + " .. key .. ".timeTo( " .. key .. ".max * ( " .. lhs .. " / 100 ) )" elseif lessOrEqual[ comp ] then - return true, rhs .. ".timeTo( " .. key .. ".max * ( " .. lhs .. " / 100 ) )" + return true, key .. ".timeTo( " .. key .. ".max * ( " .. lhs .. " / 100 ) )" end end end