diff --git a/REPorter.lua b/REPorter.lua index 5de4588..9633078 100644 --- a/REPorter.lua +++ b/REPorter.lua @@ -114,7 +114,7 @@ RE.BlinkPOIValue = 0.3 RE.BlinkPOIUp = true RE.FoundNewVersion = false -RE.AddonVersionCheck = 283 +RE.AddonVersionCheck = 284 RE.ScreenHeight, RE.ScreenWidth = _G.UIParent:GetCenter() RE.MapSettings = { @@ -1462,12 +1462,14 @@ function RE:BigButton(isHelp, otherNode) end function RE:ReportEstimator() - if TIMER:TimeLeft(RE.EstimatorTimer) > 0 then - SendChatMessage(RE.IsWinning.." victory: "..RE:ShortTime(RE:Round(TIMER:TimeLeft(RE.EstimatorTimer), 0)), "INSTANCE_CHAT") - elseif RE.CurrentMap == SM and RE.SMEstimatorReport ~= "" then - SendChatMessage(RE.SMEstimatorReport, "INSTANCE_CHAT") - elseif RE.CurrentMap == IOC and RE.PlayedFromStart then - SendChatMessage("Alliance gate: "..RE:Round((RE.IoCGateEstimator[_G.FACTION_ALLIANCE] / RE.IoCGateHealth) * 100, 0).."% - Horde gate: "..RE:Round((RE.IoCGateEstimator[_G.FACTION_HORDE] / RE.IoCGateHealth) * 100, 0).."%", "INSTANCE_CHAT") + if IsShiftKeyDown() then + if TIMER:TimeLeft(RE.EstimatorTimer) > 0 then + SendChatMessage(RE.IsWinning.." victory: "..RE:ShortTime(RE:Round(TIMER:TimeLeft(RE.EstimatorTimer), 0)), "INSTANCE_CHAT") + elseif RE.CurrentMap == SM and RE.SMEstimatorReport ~= "" then + SendChatMessage(RE.SMEstimatorReport, "INSTANCE_CHAT") + elseif RE.CurrentMap == IOC and RE.PlayedFromStart then + SendChatMessage("Alliance gate: "..RE:Round((RE.IoCGateEstimator[_G.FACTION_ALLIANCE] / RE.IoCGateHealth) * 100, 0).."% - Horde gate: "..RE:Round((RE.IoCGateEstimator[_G.FACTION_HORDE] / RE.IoCGateHealth) * 100, 0).."%", "INSTANCE_CHAT") + end end end diff --git a/REPorter.toc b/REPorter.toc index b3ce177..fed3c49 100644 --- a/REPorter.toc +++ b/REPorter.toc @@ -1,7 +1,7 @@ ## Interface: 90005 ## Title: |cFF74D06CRE|rPorter ## Notes: Provide battleground map. -## Version: 2.8.3 +## Version: 2.8.4 ## Author: AcidWeb ## SavedVariables: REPorterSettings ## X-Website: https://www.curseforge.com/wow/addons/reporter-battleground-map diff --git a/REPorter.xml b/REPorter.xml index 83cb7d6..3bfd012 100644 --- a/REPorter.xml +++ b/REPorter.xml @@ -355,7 +355,7 @@ - +