From 68ef16e6b7bcd0bbf39e563e764a54f32384ef14 Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 16 Sep 2019 21:16:42 -0500 Subject: [PATCH] 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. --- Categories/Status.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Categories/Status.lua b/Categories/Status.lua index 3e8251d..86fef7e 100644 --- a/Categories/Status.lua +++ b/Categories/Status.lua @@ -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()