mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
pet: add pet specific click actions (fix)
This commit is contained in:
+8
-8
@@ -29,14 +29,14 @@ pfUI:RegisterModule("pet", function ()
|
||||
end)
|
||||
|
||||
pfUI.uf.pet:SetScript("OnClick", function ()
|
||||
_, playerClass = UnitClass("player");
|
||||
if arg1 == "RightButton" then
|
||||
ToggleDropDownMenu(1, nil, PetFrameDropDown, "cursor")
|
||||
elseif ( CursorHasItem() and playerClass == "HUNTER" ) then
|
||||
DropItemOnUnit("pet");
|
||||
else
|
||||
TargetUnit("pet")
|
||||
end
|
||||
local _, 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")
|
||||
|
||||
Reference in New Issue
Block a user