🛠️ 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.
This commit is contained in:
Trenten Pettry
2026-06-22 11:33:26 -04:00
parent 7d6bdc592f
commit 60b519335f
2 changed files with 3 additions and 1 deletions
+3 -1
View File
@@ -405,6 +405,8 @@ namespace Lua
isQuickSwapping = true;
try
{
string preSwitchSet = CurrentSet;
if (!ConfigLoader.betaTest)
{
if (inAttackers && !onAttackers)
@@ -444,7 +446,7 @@ namespace Lua
{
if (string.IsNullOrEmpty(originalSetBeforeQuickSwap))
{
originalSetBeforeQuickSwap = CurrentSet;
originalSetBeforeQuickSwap = preSwitchSet;
}
SetCurrentSet(targetOp);
}