What steps will reproduce the problem?
- Include this Lib to your addon
- Go to an instance (tested with Stormwind Stockade)
- Nothing happens
What is the expected output? What do you see instead?
Expecting the Lib to register CLEU, instead it doesn't get registered due to not matching the instance name with the zone text.
What version of the product are you using?
Do you have an error log of what happened?
Please provide any additional information below.
I did some quick testing in Stormwind Stockade and the LibBossEncounters-1.1.lua line 288 defines it following:
THE_STOCKADE = _G.GetMapNameByID(690),
and that is tested on line 152 with:
local zone_label = BossEncounters.zone_labels[_G.GetRealZoneText()]
If I run dump on GetRealZoneText() (line 152) inside The Stockade I get:
Dump: value=GetRealZoneText() ="Stormwind Stockade"
and dump on GetMapNameByID(690) (line 288) I get:
Dump: value=GetMapNameByID(690) ="The Stockade"
And they ain't the same so that is why the Lib doesn't register CLEU for me. I was thingking that maybe in the lib MapIDs should be changed into instanceIDs:
Dump: value=GetInstanceInfo() ="Stormwind Stockade", ="party", =1, ="Normal", =5, =0, =false, =34
Changing detection from mapID to instanceID (arg 8 ) would fix the problem but the IDs ain't the same, it would take time to change every ID for without any automation.
|ahak||May 01, 2013 at 13:48 UTC||Create|