Skip to content

Commit 718331d

Browse files
NumynumOppzippy
authored andcommittedAug 18, 2024··
Configure the actionbutton to always run on down
Closes GH-18
1 parent bd26df5 commit 718331d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎MisdirectButton.lua

+5
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ local function createButton(name, spell)
1919
button:SetAttribute("checkselfcast", false)
2020
button:SetAttribute("checkfocuscast", false)
2121
button:SetAttribute("allowVehicleTarget", false)
22+
if WOW_PROJECT_ID == WOW_PROJECT_MAINLINE then
23+
-- Ensures the action always fires on Down, regardless of the ActionButtonUseKeyDown cvar
24+
button:SetAttribute("pressAndHoldAction", "1")
25+
button:SetAttribute("typerelease", "spell")
26+
end
2227
button:RegisterForClicks("LeftButtonDown", "LeftButtonUp")
2328
return button
2429
end

0 commit comments

Comments
 (0)
Please sign in to comment.