From 5020279748371e80ed5f621837cee91dd1b9793a Mon Sep 17 00:00:00 2001 From: Parnic Date: Mon, 6 Feb 2023 00:16:15 -0600 Subject: [PATCH] Fix errors when playing Faire games --- changelog.md | 4 ++++ modules/ClassPowerCounter.lua | 10 ++++++++-- this_version.md | 4 ++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 19cc5b7..42aa5aa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.16: + +- Fixed a reported error when playing Darkmoon Faire games. + v1.14.15: - Updated TOCs for 10.0.5 diff --git a/modules/ClassPowerCounter.lua b/modules/ClassPowerCounter.lua index d21cb1c..9e8ff8c 100644 --- a/modules/ClassPowerCounter.lua +++ b/modules/ClassPowerCounter.lua @@ -616,7 +616,10 @@ function IceClassPowerCounter.prototype:SetRuneCoords(rune, percent) local left, right, top, bottom = 0, 1, 0, 1 if self:GetRuneMode() == "Graphical" then - left, right, top, bottom = unpack(self.runeCoords[rune]) + local coords = self.runeCoords[rune] + if coords then + left, right, top, bottom = unpack(coords) + end end if self.currentGrowMode == self.growModes["height"] then @@ -874,7 +877,10 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune) local a,b,c,d = 0, 1, 0, 1 if self:GetRuneMode() == "Graphical" then width = self.runeWidth - a,b,c,d = unpack(self.runeCoords[rune]) + local coords = self.runeCoords[rune] + if coords then + a,b,c,d = unpack(coords) + end end -- make sure any texture aside from the special one is square and has the proper coordinates diff --git a/this_version.md b/this_version.md index a552c95..e886267 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.16: + +- Fixed a reported error when playing Darkmoon Faire games. + v1.14.15: - Updated TOCs for 10.0.5