Skip to content

Commit

Permalink
Fix to show DK pets as Rogues (previously there was no check for if t…
Browse files Browse the repository at this point in the history
…hey were a permanent pet or the guardian variety)
  • Loading branch information
EsreverWoW committed Aug 21, 2022
1 parent 33becf4 commit 0c48938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2056,8 +2056,8 @@ function PallyPower:UpdateRoster()
if not PallyPower.petsShareBaseClass then
tmp.class = "PET"
end
local npcId = (select(6, ("-"):split(UnitGUID(unitid))))
if (npcId == "510") or (npcId == "19668") or (npcId == "1863") or (npcId == "26125") or (npcId == "185317") then -- 510: Water Elemental, 19668: Shadowfiend, 1863: Succubus, 26125: Risen Ghoul, 185317: Incubus
local unitType, _, _, _, _, npcId = string.split("-", UnitGUID(unitid))
if (npcId == "510") or (npcId == "19668") or (npcId == "1863") or (unitType ~= "Pet" and npcId == "26125") or (npcId == "185317") then -- 510: Water Elemental, 19668: Shadowfiend, 1863: Succubus, 26125: Risen Ghoul, 185317: Incubus
tmp.class = false
else
local i = 1
Expand Down

0 comments on commit 0c48938

Please sign in to comment.