Shadowmeld has a new spellid on WoTLK.

This commit is contained in:
shefki
2008-09-18 23:08:15 +00:00
parent ae7e202272
commit 1d0a1d0e7b

View File

@ -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
end