Presumably if you're fighting a boss, someone in your group is targeting it. If UnitLevel("boss1") doesn't work for some reason, you should be able to scan the targets of all your group members to find the boss and call UnitLevel on "raid12target" etc.
You can use the unit's GUI as table lookup to identify if it's a boss.
Recount needs this feature for boss-based segmentation and since Blizzard at some point changed that some bosses have boss levels and some don't, re-incorporating that information was necessary.
Advantage is that it avoids the need for target unit scanning (which can be slow in raid) as long as there are relevant CLEU events.
i'm in the CLEU handler and notice i do not seem to have the level of the npc that's been killed. how do i get it?
UnitLevel won't work.
and since i only care about bosses... i tried using 'bossN' for a unitID... no joy (not sure why. did that go away?)
any thoughts?
isn't that supposed to work? did they disable it for some reason?
http://www.wowace.com/addons/libbossids-1-0/
You can use the unit's GUI as table lookup to identify if it's a boss.
Recount needs this feature for boss-based segmentation and since Blizzard at some point changed that some bosses have boss levels and some don't, re-incorporating that information was necessary.
Advantage is that it avoids the need for target unit scanning (which can be slow in raid) as long as there are relevant CLEU events.
It only works when the boss health frames are showing i.e. you need to be in combat with the boss.