Skip to content

Commit

Permalink
Change SELF message to use hexademical instead of decimal to support …
Browse files Browse the repository at this point in the history
…ranks up to 15 instead of the previous 9
  • Loading branch information
EsreverWoW committed Aug 21, 2022
1 parent 0c48938 commit 8cafbe3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ function PallyPower:SendSelf(sender)
if not SkillInfo[i] then
s = s .. "nn"
else
s = s .. SkillInfo[i].rank .. SkillInfo[i].talent
s = s .. format("%x%x", SkillInfo[i].rank, SkillInfo[i].talent)
end
end
s = s .. "@"
Expand Down Expand Up @@ -1735,7 +1735,7 @@ function PallyPower:ParseMessage(sender, msg)
PallyPower_Assignments[sender] = {}
AllPallys[sender] = {}
self:SyncAdd(sender)
local _, _, numbers, assign = strfind(msg, "SELF ([0-9n]*)@([0-9n]*)")
local _, _, numbers, assign = strfind(msg, "SELF ([0-9a-fn]*)@([0-9n]*)")
for i = 1, 6 do
local rank = strsub(numbers, (i - 1) * 2 + 1, (i - 1) * 2 + 1)
local talent = strsub(numbers, (i - 1) * 2 + 2, (i - 1) * 2 + 2)
Expand Down Expand Up @@ -2056,7 +2056,7 @@ function PallyPower:UpdateRoster()
if not PallyPower.petsShareBaseClass then
tmp.class = "PET"
end
local unitType, _, _, _, _, npcId = string.split("-", UnitGUID(unitid))
local unitType, _, _, _, _, npcId = strsplit("-", 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
Expand Down

0 comments on commit 8cafbe3

Please sign in to comment.