From 47870c264746e7ddf02f02a076d3c4f6a26182b3 Mon Sep 17 00:00:00 2001 From: Wires77 Date: Sat, 18 Jan 2025 15:01:31 -0600 Subject: [PATCH] Fix weapon tree hotkey overriding other tree hotkeys --- src/Classes/PassiveTreeView.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Classes/PassiveTreeView.lua b/src/Classes/PassiveTreeView.lua index b4b19a6e..a7f076e7 100644 --- a/src/Classes/PassiveTreeView.lua +++ b/src/Classes/PassiveTreeView.lua @@ -89,10 +89,10 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents) -- Dragging won't actually commence unless the cursor moves far enough self.dragX, self.dragY = cursorX, cursorY end - elseif mOver then - if IsKeyDown("ALT") and event.key == "WHEELDOWN" then + elseif IsKeyDown("ALT") and mOver then + if event.key == "WHEELDOWN" then spec.allocMode = math.max(0, spec.allocMode - 1) - elseif IsKeyDown("ALT") and event.key == "WHEELUP" then + elseif event.key == "WHEELUP" then spec.allocMode = math.min(2, spec.allocMode + 1) end elseif event.key == "p" then