azeroth-pilot-reloaded
azeroth-pilot-reloaded copied to clipboard
[FEATURE] - Adapt the addon for compatibility with classic
use this to detect the version
APR.Season = C_Seasons and C_Seasons.HasActiveSeason() and C_Seasons.GetActiveSeason() -- For classic
for the interface version
local gameVersion = select(4, GetBuildInfo())
and this kind of variable to use the available API
local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or _G.GetAddOnMetadata