From ae7e202272d546ef90212e2f847ed0300b0e6b80 Mon Sep 17 00:00:00 2001 From: ellipsis Date: Sat, 30 Aug 2008 15:54:17 +0000 Subject: [PATCH] Continuing the crusade against PLAYER_PET_CHANGED, one addon at a time. Potential bugfixings but likely nothing significant. --- LibDogTag-Unit-3.0.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/LibDogTag-Unit-3.0.lua b/LibDogTag-Unit-3.0.lua index 13d01de..e4ad59c 100644 --- a/LibDogTag-Unit-3.0.lua +++ b/LibDogTag-Unit-3.0.lua @@ -293,16 +293,12 @@ DogTag:AddEventHandler("Unit", "PLAYER_FOCUS_CHANGED", function(event, ...) DogTag:FireEvent("UnitChanged", "focus") end) -DogTag:AddEventHandler("Unit", "PLAYER_PET_CHANGED", function(event, ...) - refreshGUID("pet") - DogTag:FireEvent("UnitChanged", "pet") -end) - DogTag:AddEventHandler("Unit", "UNIT_TARGET", function(event, unit) DogTag:FireEvent("UnitChanged", unit .. "target") end) DogTag:AddEventHandler("Unit", "UNIT_PET", function(event, unit) + if unit == "player" then unit = "" end local unit_pet = unit .. "pet" refreshGUID(unit_pet) DogTag:FireEvent("UnitChanged", unit_pet)