Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit 2e3be25

Browse files
committed
Add support for parsing elemental spell levels
Closes PathOfBuildingCommunity/PathOfBuilding-PoE2#213 Signed-off-by: Tomas Slusny <[email protected]>
1 parent 79e757d commit 2e3be25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Modules/ModParser.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,11 @@ local specialModList = {
28422842
["([%+%-]%d+)%% to quality of all skills"] = function(num) return { mod("GemProperty", "LIST", { keyword = "grants_active_skill", key = "quality", value = num, keyOfScaledMod = "value" }) } end,
28432843
["([%+%-]%d+)%%? to (%a+) of all ?([%a%- ]*) skills"] = function(num, _, property, type)
28442844
if type == "" then type = "all" end
2845-
return { mod("GemProperty", "LIST", { keyword = type, key = property, value = num, keyOfScaledMod = "value" }) }
2845+
local wordList = {}
2846+
for tag in type:gmatch("%w+") do
2847+
table.insert(wordList, tag)
2848+
end
2849+
return { mod("GemProperty", "LIST", { keywordList = wordList, key = property, value = num }) }
28462850
end,
28472851
["grants level (%d+) snipe skill"] = function(num) return {
28482852
mod("ExtraSkill", "LIST", { skillId = "Snipe", level = num }),

0 commit comments

Comments
 (0)