mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
pet: add pet specific click actions
This commit is contained in:
+9
-2
@@ -29,8 +29,15 @@ pfUI:RegisterModule("pet", function ()
|
||||
end)
|
||||
|
||||
pfUI.uf.pet:SetScript("OnClick", function ()
|
||||
TargetUnit("pet")
|
||||
end)
|
||||
_, playerClass = UnitClass("player");
|
||||
if arg1 == "RightButton" then
|
||||
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
|
||||
elseif ( CursorHasItem() and playerClass == "HUNTER" ) then
|
||||
DropItemOnUnit("pet");
|
||||
else
|
||||
TargetUnit("pet")
|
||||
end
|
||||
end)
|
||||
|
||||
pfUI.uf.pet:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
pfUI.uf.pet:RegisterEvent("UNIT_PET")
|
||||
|
||||
Reference in New Issue
Block a user