Skip to content

Commit 8346cb1

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Crash when using Bow with +1 Arrow Rune (#1282)
In the function to try and guess how many of the same rune there are on an item, it expects to see an integer somewhere in the modline The fix sets the value as 1 but should be fine as if a mod has a number in it, the value will be overwritten anyway Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 0336055 commit 8346cb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Classes/Item.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
809809
local specificItemType = self.base.type:lower()
810810
for runeName, runeMods in pairs(data.itemMods.Runes) do
811811
local addModToGroupedRunes = function (modLine)
812-
local runeValue
812+
local runeValue = 1
813813
local runeStrippedModLine = modLine:gsub("(%d%.?%d*)", function(val)
814814
runeValue = val
815815
return "#"
@@ -835,7 +835,7 @@ function ItemClass:ParseRaw(raw, rarity, highQuality)
835835

836836
local remainingRunes = self.itemSocketCount
837837
for i, modLine in ipairs(self.runeModLines) do
838-
local value
838+
local value = 1
839839
local strippedModLine = modLine.line:gsub("(%d%.?%d*)", function(val)
840840
value = val
841841
return "#"

0 commit comments

Comments
 (0)