Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local frame = CreateFrame("frame")
- frame:RegisterEvent("ADDON_LOADED")
- frame:SetScript("OnEvent",function(self,event,arg1)
- if arg1=="Blizzard_CombatText" then
- local orig = CombatText_AddMessage
- CombatText_AddMessage = function(msg,...)
- local count = -1
- while count ~= 0 do
- msg,count = msg:gsub("(%d+)(%d%d%d)",'%1,%2')
- end
- return orig(msg,...)
- end
- self:UnregisterAllEvents()
- self:SetScript("OnEvent",nil)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment