Thread Tools Display Modes
12-12-18, 08:37 AM   #1
maqjav
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 60
How to know map phase

Hello.

Since the beggining of BFA and the new map API, I can't tell which version of a map I'm seeing. For example, in Silithus there is the old map version and the Legion version, but both of them share the same MAPID. I cannot find any function that will help me to know in which phase I'm at the moment.

Thanks!
  Reply With Quote
12-14-18, 09:45 PM   #2
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
The way I detect the "phase" of the map is I check for a buff given by Zidormi. If you have the buff you are time traveling back to the old "phase". Note there are a few zones that have Zidormi, but I have found that I cannot do the same trick in Dustwallow Marsh since no buff seems to be applied.
  Reply With Quote
12-15-18, 01:38 AM   #3
maqjav
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 60
Originally Posted by Nimhfree View Post
The way I detect the "phase" of the map is I check for a buff given by Zidormi. If you have the buff you are time traveling back to the old "phase". Note there are a few zones that have Zidormi, but I have found that I cannot do the same trick in Dustwallow Marsh since no buff seems to be applied.
That's a smart solution. Does it apply the same way for alts? I mean, if you are playing with a level 60 at Silithus, I guess that you won't be able to see Zidormi, right?

I cannot believe that Blizzard didn't think of a solution for this simple and more often common problem.

Last edited by maqjav : 12-15-18 at 01:40 AM.
  Reply With Quote
12-18-18, 10:47 AM   #4
Talyrius
An Onyxian Warder
 
Talyrius's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 363
The map phase can be ascertained by evaluating the mapArtID:
Lua Code:
  1. local mapArtID = C_Map.GetMapArtID(mapID)

If you're unfamiliar with mapIDs and how they're obtained, this should help.

Last edited by Talyrius : 12-18-18 at 10:53 AM.
  Reply With Quote
12-23-18, 01:27 AM   #5
maqjav
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 60
That's exactly what I was looking for! Thank you!
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to know map phase

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off