Initial WoW Classic Support

First pass of changes to make Details! compatible with WoW Classic.
This commit is contained in:
Tercioo
2019-05-23 15:13:42 -03:00
parent 24dde5130c
commit 643d25bb91
30 changed files with 517 additions and 364 deletions
+7 -3
View File
@@ -1476,12 +1476,16 @@ function _detalhes:UpdateState_CurrentMythicDungeonRun (stillOngoing, segmentID,
end
function _detalhes:RestoreState_CurrentMythicDungeonRun()
--no need to check for mythic+ if the user is playing on classic wow
if (DetailsFramework.IsClassicWow()) then
return
end
local savedTable = _detalhes.mythic_dungeon_currentsaved
local mythicLevel = C_ChallengeMode.GetActiveKeystoneInfo()
local zoneName, _, _, _, _, _, _, currentZoneID = GetInstanceInfo()
--local ejID = EJ_GetCurrentInstance() --removed on 8.0
local mapID = C_Map.GetBestMapForUnit ("player")
if (not mapID) then
@@ -1491,7 +1495,7 @@ function _detalhes:RestoreState_CurrentMythicDungeonRun()
local ejID = 0
if (mapID) then
ejID = EJ_GetInstanceForMap (mapID) or 0
ejID = DetailsFramework.EncounterJournal.EJ_GetInstanceForMap (mapID) or 0
end
--> is there a saved state for the dungeon?