nameplates: disable clicks while spell targeting

Thanks @woblight
This commit is contained in:
shagu
2018-10-09 20:47:00 +02:00
parent 6fb47c7b70
commit 932e78bc3e
+6
View File
@@ -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