From b1e9a4d1830d861d07b1c074f39332d48f474bd5 Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 12 May 2020 14:04:02 +0200 Subject: [PATCH] nameplates: remove custom plate for mouselook Mouselook right click handler can also work on regular plates in vanilla. There's no need to enforce custom plate overlays. --- modules/nameplates.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 232907ce..25a024b6 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -591,10 +591,10 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () local parent = self local nameplate = self.nameplate - local plate = (C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1") and nameplate or parent + local plate = C.nameplates["overlap"] == "1" and nameplate or parent -- replace clickhandler - if C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" then + if C.nameplates["overlap"] == "1" then parent:SetFrameLevel(0) nameplate:SetScript("OnClick", function() parent:Click() end) @@ -634,7 +634,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () -- disable click events while spell is targeting local mouseEnabled = this.nameplate:IsMouseEnabled() - if C.nameplates["clickthrough"] == "0" and ( C.nameplates["overlap"] == "1" or C.nameplates["rightclick"] == "1" ) and SpellIsTargeting() == mouseEnabled then + if C.nameplates["clickthrough"] == "0" and C.nameplates["overlap"] == "1" and SpellIsTargeting() == mouseEnabled then this.nameplate:EnableMouse(not mouseEnabled) end