From a3066817b65bcd4bb264d2309579389f5124e091 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 12 May 2020 13:30:51 +0200 Subject: [PATCH] nameplates: remove obsolete reference to legacy --- modules/nameplates.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 1efb5046..e07e6041 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -620,7 +620,6 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () end end - -- disable click events while spell is targeting local hookOnUpdate = nameplates.OnUpdate nameplates.OnUpdate = function(self) if C.nameplates["overlap"] == "1" then @@ -633,9 +632,11 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () this:SetHeight(this.nameplate:GetHeight() * UIParent:GetScale()) end - local mouseEnabled = this.nameplate:IsMouseEnabled() - if C.nameplates["clickthrough"] == "0" and C.nameplates["legacy"] == "0" and SpellIsTargeting() == mouseEnabled then - this.nameplate:EnableMouse(not mouseEnabled) + -- disable click events while spell is targeting + if C.nameplates["clickthrough"] == "1" or SpellIsTargeting() then + this.nameplate:EnableMouse(false) + else + this.nameplate:EnableMouse(true) end hookOnUpdate(self)