Continuing the crusade against PLAYER_PET_CHANGED, one addon at a time. Potential bugfixings but likely nothing significant.

This commit is contained in:
ellipsis
2008-08-30 15:54:17 +00:00
parent ecf910717c
commit ae7e202272

View File

@ -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)