unitframes: ignore non existing partypet events

This commit is contained in:
shagu
2018-04-07 19:24:46 +02:00
parent 9140b7f5a5
commit 99ddd679eb
3 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ pfUI:RegisterModule("group", function ()
pfUI.uf.groupscanner:SetScript("OnUpdate", function()
if ( this.limit or 1) > GetTime() then return else this.limit = GetTime() + .2 end
for i=1, 4 do
if UnitExists("party" .. i .. "target") or (pfUI.unlock and pfUI.unlock:IsShown()) then
if (UnitExists("party" .. i) and UnitExists("party" .. i .. "target")) or (pfUI.unlock and pfUI.unlock:IsShown()) then
pfUI.uf.group[i].target:Show()
else
pfUI.uf.group[i].target:Hide()