mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
Continuing the crusade against PLAYER_PET_CHANGED, one addon at a time. Potential bugfixings but likely nothing significant.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user