Skip to content

Commit a29c4a4

Browse files
committed
Block keystones allocation when a weapon set is selected
1 parent 923c6df commit a29c4a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Classes/PassiveTreeView.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
285285
build.buildFlag = true
286286
elseif hoverNode.path then
287287
-- Node is unallocated and can be allocated, so allocate it
288+
-- Check if trying to allocate a keystone while a weapon set is selected (which is not allowed)
289+
if hoverNode.type == "Keystone" and spec.allocMode > 0 then
290+
-- Block keystone allocation when weapon set is selected
291+
return
292+
end
288293
-- attribute switching, unallocated to allocated
289294
if hoverNode.isAttribute and not hotkeyPressed then
290295
build.treeTab:ModifyAttributePopup(hoverNode)

0 commit comments

Comments
 (0)