Skip to content

Commit 00f6b21

Browse files
committed
Fixed PartyPets for Arena encounters
1 parent 8d02df5 commit 00f6b21

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Core.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ PPF_Core = PPF:NewModule("PPF_Core")
33
function PPF_Core:OnEnable()
44
function PPF:OnEvent()
55
if InCombatLockdown() then return end
6+
7+
local inInstance, instanceType = IsInInstance()
68
if PPF_Disabled() then
79
PPF_Pet:Hide()
810
PPF_PetButton:Hide()
@@ -18,7 +20,8 @@ function PPF_Core:OnEnable()
1820

1921
PPF_P4:Hide()
2022
PPF_P4Button:Hide()
21-
elseif (IsInParty()) and not IsInRaid() then
23+
elseif IsInParty() or (inInstance and instanceType == 'arena') and not IsInRaid() then
24+
print("hello")
2225
if UnitExists("pet") then
2326
local anchor = _G["CompactPartyFrameMember" .. GetNumGroupMembers()]
2427
PPF_Pet:SetPoint("LEFT", anchor, "LEFT", PPF_DB.positionx, PPF_DB.positiony)
@@ -152,7 +155,7 @@ function PPF_Core:OnEnable()
152155
end
153156

154157
function IsInParty()
155-
if GetNumGroupMembers() > 0 then
158+
if GetNumGroupMembers() > 1 then
156159
return true
157160
end
158161
end

PartyPetsFix.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Interface: 100002
22
## Author: muleyo
3-
## Version: 1.0.0
3+
## Version: 1.0.1
44
## Title: |cff009cffPartyPets Fix|r
55
## Notes: Makes Raid-Style Partyframe Pets visible again
66
## SavedVariables: PPFDB

0 commit comments

Comments
 (0)