I use scripting to replicate my action bar spell placement via “do PickupSpell(n) PlaceAction(x) ClearCursor() end”. Is it possible to do the same with Pet Spells using PickupPetSpell() AND have them automatically placed on the pet bar? I haven’t been able to figure what the slot numbers would be for the pet bar, or if it’s even possible to do this without an addon doing it rather than through a script.
This is how Blizz. use it for the PetAction bar OnReceiveDrag.
function PetActionButtonMixin:OnReceiveDrag()
local cursorType = GetCursorInfo();
if (cursorType == "petaction") then
self:SetChecked(false);
PickupPetAction(self:GetID());
PetActionBar:Update();
end
end
If you have a pet action on the cursor it may just be easier to call:
PetActionButtonx:GetScript("OnReceiveDrag")(PetActionButtonx)