Actually re-added support for pet happiness in Classic

Commit f54d8964 added incorrect logic that caused the tags to go away on Classic. The only change that should have stuck around from that commit was to use the proper unit event.
This commit is contained in:
Parnic
2019-09-16 21:16:42 -05:00
parent f54d896417
commit 68ef16e6b7

View File

@ -457,7 +457,7 @@ DogTag:AddTag("Unit", "IsFeignedDeath", {
})
-- Parnic: pet happiness removed in 4.1
if not wow_401 and not wow_classic then
if not wow_401 then
DogTag:AddTag("Unit", "HappyNum", {
code = function()
return GetPetHappiness() or 0
@ -935,7 +935,7 @@ DogTag:AddTag("Unit", "StatusColor", {
})
-- Parnic: pet happiness removed in 4.1
if not wow_401 and not wow_classic then
if not wow_401 then
DogTag:AddTag("Unit", "HappyColor", {
code = function(value)
local x = GetPetHappiness()