From 906d2e37f3ec90faf8a47f2d3380a4921d8aeabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 9 Aug 2018 23:16:08 +0200 Subject: [PATCH] Improved support of Arathi Blizzard --- REPorter.lua | 11 +++++++++-- REPorter.toc | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/REPorter.lua b/REPorter.lua index 1c3cff1..88fa285 100644 --- a/REPorter.lua +++ b/REPorter.lua @@ -144,7 +144,7 @@ RE.BlinkPOIValue = 0.3 RE.BlinkPOIUp = true RE.FoundNewVersion = false -RE.AddonVersionCheck = 215 +RE.AddonVersionCheck = 216 RE.ScreenHeight, RE.ScreenWidth = _G.UIParent:GetCenter() RE.MapSettings = { @@ -1714,7 +1714,14 @@ function RE:LoadMapSettings() _G.REPorterFrameCoreAnchor:SetPoint("CENTER", _G.REPorterFrameClip, "CENTER", mx, my) _G.REPorterFrame:SetAlpha(RE.Settings.profile.Opacity) - local textures = GetMapArtLayerTextures(RE.CurrentMap, 1) + local textures + if RE.CurrentMap == AB and RE.IsBrawl then + textures = GetMapArtLayerTextures(ABW, 1) + RE.ZonesWithoutSubZones[AB] = true + else + textures = GetMapArtLayerTextures(RE.CurrentMap, 1) + RE.ZonesWithoutSubZones[AB] = nil + end for i=1, #textures do _G["REPorterFrameCoreMap"..i]:SetTexture(textures[i]) end diff --git a/REPorter.toc b/REPorter.toc index 94e1bed..175044b 100644 --- a/REPorter.toc +++ b/REPorter.toc @@ -1,7 +1,7 @@ ## Interface: 80000 ## Title: |cFF74D06CRE|rPorter ## Notes: Provide battleground map. -## Version: 2.1.5 +## Version: 2.1.6 ## Author: AcidWeb ## SavedVariables: REPorterSettings ## X-Website: https://www.curseforge.com/wow/addons/reporter-battleground-map