LibBossIDs-1.0 provides a table that flags mobIDs true if the mob linked to the ID is a boss.
Example:
if LibStub("LibBossIDs-1.0").BossIDs[mobID] then
print("Found a boss!")
end
One can get the mobID from a GUID the following way
local mobid = tonumber(UnitGUID("target"):sub(-13, -9), 16)
Change Log:
------------------------------------------------------------------------
r78 | yoshimo | 2012-01-14 09:08:56 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
A /tags/r78-release (from /trunk:77)
Tagging as r78-release
------------------------------------------------------------------------
r77 | yoshimo | 2012-01-14 09:05:15 +0000 (Sat, 14 Jan 2012) | 1 line
Changed paths:
M /trunk/LibBossIDs-1.0.lua
fix id for Warmaster Blackhorn (DS), was using his model-id
------------------------------------------------------------------------