Skip to content

Commit

Permalink
workaround some ranks not being provided
Browse files Browse the repository at this point in the history
  • Loading branch information
fusionpit committed Nov 28, 2020
1 parent 3a4ae94 commit 69fc537
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Classes/Hunter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ petAbilityUpdateFrame:SetScript("OnEvent", function()
if (wt.learnedPetAbilityMap[name] == nil) then
wt.learnedPetAbilityMap[name] = {}
end
wt.learnedPetAbilityMap[name][rank]= true
-- some locales may not provide a rank, need more investigation
if (rank ~= nil) then
wt.learnedPetAbilityMap[name][rank]= true
end
end
wt.afterPetUpdate()
end)
Expand Down

0 comments on commit 69fc537

Please sign in to comment.