From 6895a712bcfa2ca6f13036e45983a047cd327a2c Mon Sep 17 00:00:00 2001 From: Christopher Tse Date: Fri, 10 Apr 2020 13:11:22 +1000 Subject: [PATCH] Don't skin blizz's bubbles when they are forbidden by dungeons and raids --- BlizzChatIntegration.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/BlizzChatIntegration.lua b/BlizzChatIntegration.lua index a5d49fa..65bc0e7 100644 --- a/BlizzChatIntegration.lua +++ b/BlizzChatIntegration.lua @@ -139,11 +139,14 @@ end local function checkBubbles(chatBubbles) --chatBubbles is an indexed array of frames for _, chatBubble in pairs(chatBubbles) do - if not chatBubble.rpSkinned then - skinBubble(chatBubble) - else - local message = getChatBubbleText(chatBubble) - chatBubble:SetName(messageToSender[message]) + --7.2.5 disabled chatbubble skinning in dungeons and raids + if not chatBubble:IsForbidden() then + if not chatBubble.rpSkinned then + skinBubble(chatBubble) + else + local message = getChatBubbleText(chatBubble) + chatBubble:SetName(messageToSender[message]) + end end end end -- 1.7.9.5