Quantcast

Don't skin blizz's bubbles when they are forbidden by dungeons and raids

Christopher Tse [04-10-20 - 03:11]
Don't skin blizz's bubbles when they are forbidden by dungeons and raids
Filename
BlizzChatIntegration.lua
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