From 1d230f61ee94e5c46c6dc3c7f06b9ef46f10b5db Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sat, 28 Sep 2019 13:46:19 -0300 Subject: [PATCH] Fixed issue with the latest wow patch 82505 Fixes for the client change: "Chat channel 'SAY' cannot be used in open world anymore". --- Details.toc | 2 +- boot.lua | 12 ++++++------ core/network.lua | 1 + core/plugins_raid.lua | 6 ++++-- gumps/janela_report.lua | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Details.toc b/Details.toc index 7be47d49b..c89a23e90 100644 --- a/Details.toc +++ b/Details.toc @@ -1,4 +1,4 @@ -## Interface: 80200 +## Interface: 80205 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. ## SavedVariables: _detalhes_global diff --git a/boot.lua b/boot.lua index a297189fc..45e826dda 100644 --- a/boot.lua +++ b/boot.lua @@ -4,10 +4,10 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 7193 - _detalhes.alpha_build_counter = 7193 --if this is higher than the regular counter, use it instead - _detalhes.game_version = "v8.2.0" - _detalhes.userversion = "v8.2.0." .. _detalhes.build_counter + _detalhes.build_counter = 7203 + _detalhes.alpha_build_counter = 7203 --if this is higher than the regular counter, use it instead + _detalhes.game_version = "v8.2.5" + _detalhes.userversion = "v8.2.5." .. _detalhes.build_counter _detalhes.realversion = 140 --core version, this is used to check API version for scripts and plugins (see alias below) _detalhes.APIVersion = _detalhes.realversion --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" --simple stirng to show to players @@ -27,8 +27,8 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v8.2.0.7193.140 (|cFFFFCC00September 21th, 2019|r|cFFFFFF00)|r:\n\n -|cFFFFFF00-|r Libraries update.\n\n +|cFFFFFF00v8.2.5.7203.140 (|cFFFFCC00September 28th, 2019|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r Applyed fixes for 8.2.5.0.5 wow version update.\n\n |cFFFFFF00-|r Fixed several bugs on custom made displays.\n\n --]] diff --git a/core/network.lua b/core/network.lua index 2473f16ed..38176efda 100644 --- a/core/network.lua +++ b/core/network.lua @@ -428,6 +428,7 @@ local from = UnitName ("player") local realm = GetRealmName() + --todo: need to check if the target is still online _detalhes:SendCommMessage (CONST_DETAILS_PREFIX, _detalhes:Serialize (CONST_GUILD_SYNC, from, realm, _detalhes.realversion, "A", data), "WHISPER", task.Target) if (_detalhes.debug) then diff --git a/core/plugins_raid.lua b/core/plugins_raid.lua index b3c785ed8..d7b51e07b 100644 --- a/core/plugins_raid.lua +++ b/core/plugins_raid.lua @@ -260,8 +260,10 @@ elseif (channel == "PRINT") then print (msg) - else - SendChatMessage (msg, channel) + else --say channel? + if (IsInInstance()) then --patch 80205 cannot use 'say' channel outside instances + SendChatMessage (msg, channel) + end --elseif (channel == "SAY" or channel == "YELL" or channel == "RAID_WARNING" or channel == "OFFICER" or channel == "GUILD" or channel == "EMOTE") then diff --git a/gumps/janela_report.lua b/gumps/janela_report.lua index 8acead9ea..e3270c01e 100644 --- a/gumps/janela_report.lua +++ b/gumps/janela_report.lua @@ -331,7 +331,7 @@ local function cria_drop_down (este_gump) {Loc ["STRING_REPORTFRAME_OFFICERS"], "OFFICER", _IsInGuild, {iconsize = iconsize, icon = [[Interface\FriendsFrame\UI-Toast-ToastIcons]], coords = {0.8046875, 0.96875, 0.125, 0.390625}, color = {0.25, 0.74, 0.25}}}, {Loc ["STRING_REPORTFRAME_WHISPER"], "WHISPER", nil, {iconsize = iconsize, icon = [[Interface\FriendsFrame\UI-Toast-ToastIcons]], coords = {0.0546875, 0.1953125, 0.625, 0.890625}, color = {1, 0.49, 1}}}, {Loc ["STRING_REPORTFRAME_WHISPERTARGET"], "WHISPER2", nil, {iconsize = iconsize, icon = [[Interface\FriendsFrame\UI-Toast-ToastIcons]], coords = {0.0546875, 0.1953125, 0.625, 0.890625}, color = {1, 0.49, 1}}}, - {Loc ["STRING_REPORTFRAME_SAY"], "SAY", nil, {iconsize = iconsize, icon = [[Interface\FriendsFrame\UI-Toast-ToastIcons]], coords = {0.0390625, 0.203125, 0.09375, 0.375}, color = {1, 1, 1}}}, + {Loc ["STRING_REPORTFRAME_SAY"], "SAY", IsInInstance, {iconsize = iconsize, icon = [[Interface\FriendsFrame\UI-Toast-ToastIcons]], coords = {0.0390625, 0.203125, 0.09375, 0.375}, color = {1, 1, 1}}}, {Loc ["STRING_REPORTFRAME_COPY"], "COPY", nil, {iconsize = iconsize, icon = [[Interface\Buttons\UI-GuildButton-PublicNote-Disabled]], coords = {0, 1, 0, 1}, color = {1, 1, 1}}}, }