Skip to content

Commit

Permalink
Fix #3743
Browse files Browse the repository at this point in the history
  • Loading branch information
Hekili committed Sep 12, 2024
1 parent 4265108 commit 25076b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25076b7

Please sign in to comment.