Thank you for helping me understand the log enough to get this working. Once I was able to get the specific arguments, it made deciphering the event a lot simpler. Let me know if you'd do anything differently.
This is what I ended up with and it seems to be working fine:
Code:
if (event == "COMBAT_LOG_EVENT_UNFILTERED") then
local mypetBuffDest = UnitName("pet");
local myBuffDest = UnitName("player");
if ((arg2 == "SPELL_PERIODIC_ENERGIZE") and (arg4 == myBuffDest) and (arg7 == mypetBuffDest) and (arg10 == "Feed Pet Effect")) then
PetEXPInfoBar_Update();
PetEXPInfoBar_BuffCheck();
PetEXPInfoBar_FeedPet();
PetEXPInfoBar_State();
elseif not ((arg2 == "SPELL_PERIODIC_ENERGIZE") and (arg4 == myBuffDest) and (arg7 == mypetBuffDest) and (arg10 == "Feed Pet Effect")) then
PetEXPBarFeedText:Hide();
end
end
function HappyFeed()
if (arg12 == 35) then
PetEXPBarFeedText:SetText("35 H");
return true;
elseif (arg12 == 34) then
PetEXPBarFeedText:SetText("34 H");
return true;
elseif (arg12 == 33) then
PetEXPBarFeedText:SetText("33 H");
return true;
elseif (arg12 == 32) then
PetEXPBarFeedText:SetText("32 H");
return true;
elseif (arg12 == 31) then
PetEXPBarFeedText:SetText("31 H");
return true;
elseif (arg12 == 30) then
PetEXPBarFeedText:SetText("30 H");
return true;
end
etc .. etc.. etc..
end