Updates for TBC classic. Switched as many versions checks as I could to feature detection rather than hardcoded version number checks.

This commit is contained in:
Andrew Scott
2021-04-24 12:08:40 -07:00
parent 3f2505245c
commit f845e20c05
11 changed files with 72 additions and 87 deletions

View File

@ -22,10 +22,9 @@ local L = DogTag_Unit.L
local newList = DogTag.newList
local del = DogTag.del
local wow_ver = select(4, GetBuildInfo())
local wow_500 = wow_ver >= 50000
local PartyChangedEvent = "PARTY_MEMBERS_CHANGED"
if wow_500 then
if UnitIsGroupLeader then
-- Changed in wow 5.0
PartyChangedEvent = "GROUP_ROSTER_UPDATE"
end