From 46db715043f524eb30133aeb46ed0221c97c878a Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 12 May 2020 13:45:09 +0200 Subject: [PATCH] nameplates: fix mouse buttons for vanilla --- modules/nameplates.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index e07e6041..232907ce 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -633,10 +633,9 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () end -- disable click events while spell is targeting - if C.nameplates["clickthrough"] == "1" or SpellIsTargeting() then - this.nameplate:EnableMouse(false) - else - this.nameplate:EnableMouse(true) + local mouseEnabled = this.nameplate:IsMouseEnabled() + if C.nameplates["clickthrough"] == "0" and ( C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" ) and SpellIsTargeting() == mouseEnabled then + this.nameplate:EnableMouse(not mouseEnabled) end hookOnUpdate(self)