Key Master

Key Master

89.8k Downloads

C_MythicPlus.GetCurrentAffixes() Returns nil on first login

jcorrington opened this issue ยท 1 comments

commented

The Blizzard function 'C_MythicPlus.GetCurrentAffixes()' returns a nil value on login. This appears the only happen when all addons but ours (KMMaster) is disabled. After logging into the game the first time and doing a /reloadui OR logging out and back in the values are not nil anymore.

Note: The website: https://wowpedia.fandom.com/wiki/API_C_MythicPlus.GetCurrentAffixes, makes a comment about running C_MythicPlus.RequestMapInfo() before this function should stop the returning nil, but that doesn't seem to be the case for us.

commented

Found the issue to be resolved by Mythic Dungeon Tools by calling the three functions inside KeyMaster.lua in the 'onEvent_PlayerEnterWorld' function. Also added a 1s timer before triggering the C_MythicPlus function calls to get maps/affix information to allow time for the following listed functions to do whatever it is they do.

  1. C_MythicPlus.RequestCurrentAffixes()
  2. C_MythicPlus.RequestMapInfo()
  3. C_MythicPlus.RequestRewards()