diff --git a/Categories/Auras.lua b/Categories/Auras.lua index 2bf00cd..885b4d2 100644 --- a/Categories/Auras.lua +++ b/Categories/Auras.lua @@ -1,5 +1,6 @@ local MAJOR_VERSION = "LibDogTag-Unit-3.0" local MINOR_VERSION = tonumber(("$Revision$"):match("%d+")) or 0 +local WoTLK = select(4,GetBuildInfo()) >= 30000 if MINOR_VERSION > _G.DogTag_Unit_MINOR_VERSION then _G.DogTag_Unit_MINOR_VERSION = MINOR_VERSION @@ -326,7 +327,13 @@ DogTag:AddTag("Unit", "IsShadowform", { }) local STEALTH = GetSpellInfo(1784) -local SHADOWFORM = GetSpellInfo(20580) +local SHADOWFORM +if WoTLK then + SHADOWFORM = GetSpellInfo(58984) +else + + SHADOWFORM = GetSpellInfo(20580) +end local PROWL = GetSpellInfo(5215) DogTag:AddTag("Unit", "IsStealthed", { alias = ("HasAura(aura=%q, unit=unit) or HasAura(aura=%q, unit=unit) or HasAura(aura=%q, unit=unit)"):format(STEALTH, SHADOWFORM, PROWL), @@ -470,4 +477,4 @@ DogTag:AddTag("Unit", "HasDiseaseDebuff", { category = L["Auras"] }) -end \ No newline at end of file +end