Skip to content

Commit

Permalink
Yet another fix for rated Eye of The Storm
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 3, 2018
1 parent 7094f96 commit c7e4fa1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions REPorter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local IsShiftKeyDown = _G.IsShiftKeyDown
local IsAltKeyDown = _G.IsAltKeyDown
local IsControlKeyDown = _G.IsControlKeyDown
local IsInBrawl = _G.C_PvP.IsInBrawl
local IsRatedBattleground = _G.IsRatedBattleground
local GetBattlefieldInstanceRunTime = _G.GetBattlefieldInstanceRunTime
local GetMapInfo = _G.C_Map.GetMapInfo
local GetMapArtLayerTextures = _G.C_Map.GetMapArtLayerTextures
Expand Down Expand Up @@ -136,6 +137,7 @@ RE.SMEstimatorText = ""
RE.SMEstimatorReport = ""
RE.IsWinning = ""
RE.IsBrawl = false
RE.IsRated = false
RE.IsOverlay = false

RE.BlipOffsetT = 0.5
Expand All @@ -145,7 +147,7 @@ RE.BlinkPOIValue = 0.3
RE.BlinkPOIUp = true

RE.FoundNewVersion = false
RE.AddonVersionCheck = 217
RE.AddonVersionCheck = 218
RE.ScreenHeight, RE.ScreenWidth = _G.UIParent:GetCenter()

RE.MapSettings = {
Expand Down Expand Up @@ -828,7 +830,9 @@ function RE:OnPOIUpdate()
for _, v in pairs(RE.POINodes) do
v.active = false
end
if RE.CurrentMap ~= SS then
if RE.CurrentMap == EOTS and RE.IsRated then
RE.POIList = GetAreaPOIForMap(EOTSR)
elseif RE.CurrentMap ~= SS then
RE.POIList = GetAreaPOIForMap(RE.CurrentMap)
else
RE.POIList = GetVignettes()
Expand Down Expand Up @@ -1261,6 +1265,7 @@ function RE:Shutdown()
RE.POINodes = {}
RE.IsWinning = ""
RE.IsBrawl = false
RE.IsRated = false
RE.CareAboutNodes = false
RE.CareAboutPoints = false
RE.CareAboutGates = false
Expand Down Expand Up @@ -1299,6 +1304,7 @@ function RE:Create()
_G.REPorterFrameCore:SetScript("OnUpdate", nil)
_G.REPorterFrameEstimator:ClearAllPoints()
RE.IsBrawl = IsInBrawl()
RE.IsRated = IsRatedBattleground()
RE.POINodes = {}

if RE.CurrentMap == TOK or RE.CurrentMap == DG then
Expand Down
2 changes: 1 addition & 1 deletion REPorter.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 80000
## Title: |cFF74D06CRE|rPorter
## Notes: Provide battleground map.
## Version: 2.1.7
## Version: 2.1.8
## Author: AcidWeb
## SavedVariables: REPorterSettings
## X-Website: https://www.curseforge.com/wow/addons/reporter-battleground-map
Expand Down

0 comments on commit c7e4fa1

Please sign in to comment.