From 932e78bc3eeca515d7cdee2e55ff23d6c7b74c9f Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 9 Oct 2018 20:47:00 +0200 Subject: [PATCH] nameplates: disable clicks while spell targeting Thanks @woblight --- modules/nameplates.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index c42713a7..b5471675 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -399,6 +399,12 @@ pfUI:RegisterModule("nameplates", function () end end + -- disable click events while spell is targeting + local mouseEnabled = this.nameplate:IsMouseEnabled() + if C.nameplates["clickthrough"] == "0" and SpellIsTargeting() == mouseEnabled then + this.nameplate:EnableMouse(not mouseEnabled) + end + -- level elite indicator if this.needEliteUpdate and pfUI.nameplates.mobs[unitname] then if level:GetText() ~= nil then