1 Commits

Author SHA1 Message Date
Trenten Pettry 60b519335f 🛠️ Fixed (Bugs resolved)
- Quick Swap Side Restoration: Fixed a bug where quickswap would fail to switch sides when toggling back to the original operator. The issue occurred because the baseline set was captured after the side had already switched, so the revert logic couldn't determine it needed to switch sides again. Now the baseline is captured before any side change, ensuring correct toggle behavior.
📂 File-Level Changes Summary
- OperatorSets.cs: Captured preSwitchSet before the SwitchSide() call in QuickSwapTo() and used it when storing originalSetBeforeQuickSwap.
2026-06-22 11:33:26 -04:00
2 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -405,6 +405,8 @@ namespace Lua
isQuickSwapping = true; isQuickSwapping = true;
try try
{ {
string preSwitchSet = CurrentSet;
if (!ConfigLoader.betaTest) if (!ConfigLoader.betaTest)
{ {
if (inAttackers && !onAttackers) if (inAttackers && !onAttackers)
@@ -444,7 +446,7 @@ namespace Lua
{ {
if (string.IsNullOrEmpty(originalSetBeforeQuickSwap)) if (string.IsNullOrEmpty(originalSetBeforeQuickSwap))
{ {
originalSetBeforeQuickSwap = CurrentSet; originalSetBeforeQuickSwap = preSwitchSet;
} }
SetCurrentSet(targetOp); SetCurrentSet(targetOp);
} }