Skip to content

Commit

Permalink
fix: ensure pet action bar is only ignored when no active pets
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Jan 14, 2025
1 parent d600639 commit e778a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Myslot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function MySlot:Export(opt)
end

msg.petslot = {}
if not opt.ignorePetActionBar then
if not opt.ignorePetActionBar and IsPetActive() then
for i = 1, NUM_PET_ACTION_SLOTS, 1 do
local m = self:GetPetActionInfo(i)
if m then
Expand Down Expand Up @@ -848,7 +848,7 @@ function MySlot:RecoverData(msg, opt)
end


if not opt.actionOpt.ignorePetActionBar then
if not opt.actionOpt.ignorePetActionBar and IsPetActive() then
local pettoken = {}
for i = 1, NUM_PET_ACTION_SLOTS, 1 do
local name, _, isToken = GetPetActionInfo(i)
Expand Down

0 comments on commit e778a71

Please sign in to comment.