From 69fc53725d9ac3c1a9c743a64fe44b144b7409d0 Mon Sep 17 00:00:00 2001 From: fusionpit Date: Sat, 28 Nov 2020 14:07:06 -0700 Subject: [PATCH] workaround some ranks not being provided --- Classes/Hunter.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Classes/Hunter.lua b/Classes/Hunter.lua index 32918b6..17931b6 100644 --- a/Classes/Hunter.lua +++ b/Classes/Hunter.lua @@ -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)