Skip to content

Commit a9725b4

Browse files
authored
Allow Vaal auras to work as well with Sublime Vision (#6135)
Sublime Vision do not disables Vaal auras. Closes #6073 Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
1 parent ce01a7b commit a9725b4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Classes/ModStore.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,16 +601,17 @@ function ModStoreClass:EvalMod(mod, cfg)
601601
end
602602
elseif tag.type == "SkillName" then
603603
local match = false
604-
local matchName = tag.summonSkill and (cfg and cfg.summonSkillName or "") or (cfg and cfg.skillName)
604+
local matchName = tag.summonSkill and (cfg and cfg.summonSkillName or "") or (cfg and cfg.skillName or "")
605+
matchName = matchName:lower()
605606
if tag.skillNameList then
606607
for _, name in pairs(tag.skillNameList) do
607-
if name == matchName then
608+
if name:lower() == matchName then
608609
match = true
609610
break
610611
end
611612
end
612613
else
613-
match = (tag.skillName == matchName)
614+
match = (tag.skillName and tag.skillName:lower() == matchName)
614615
end
615616
if tag.neg then
616617
match = not match

src/Modules/ModParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4021,7 +4021,7 @@ local specialModList = {
40214021
["your travel skills are disabled"] = { flag("DisableSkill", { type = "SkillType", skillType = SkillType.Travel }) },
40224022
["aura skills other than ([%a%s]+) are disabled"] = function(_, name) return {
40234023
flag("DisableSkill", { type = "SkillType", skillType = SkillType.Aura }),
4024-
flag("EnableSkill", { type = "SkillId", skillId = gemIdLookup[name] }),
4024+
flag("EnableSkill", { type = "SkillName", skillName = name }),
40254025
} end,
40264026
["travel skills other than ([%a%s]+) are disabled"] = function(_, name) return {
40274027
flag("DisableSkill", { type = "SkillType", skillType = SkillType.Travel }),

0 commit comments

Comments
 (0)