Re-added support for pet happiness in Classic

This commit is contained in:
2019-09-06 11:28:49 -05:00
parent 93a898dc15
commit f54d896417

View File

@ -40,6 +40,10 @@ end
-- Parnic: pet happiness removed in 4.1
local wow_401 = wow_ver >= 40100
-- ...and back in Classic
if wow_classic then
petHappinessEvent = "UNIT_HAPPINESS"
end
-- Parnic: GetNumRaidMembers/GetNumPartyMembers removed in 6.0
if wow_600 or wow_classic then
@ -453,7 +457,7 @@ DogTag:AddTag("Unit", "IsFeignedDeath", {
})
-- Parnic: pet happiness removed in 4.1
if not wow_401 then
if not wow_401 and not wow_classic then
DogTag:AddTag("Unit", "HappyNum", {
code = function()
return GetPetHappiness() or 0
@ -931,7 +935,7 @@ DogTag:AddTag("Unit", "StatusColor", {
})
-- Parnic: pet happiness removed in 4.1
if not wow_401 then
if not wow_401 and not wow_classic then
DogTag:AddTag("Unit", "HappyColor", {
code = function(value)
local x = GetPetHappiness()