Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Classes/ModStore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -601,16 +601,17 @@ function ModStoreClass:EvalMod(mod, cfg)
end
elseif tag.type == "SkillName" then
local match = false
local matchName = tag.summonSkill and (cfg and cfg.summonSkillName or "") or (cfg and cfg.skillName)
local matchName = tag.summonSkill and (cfg and cfg.summonSkillName or "") or (cfg and cfg.skillName or "")
matchName = matchName:lower()
if tag.skillNameList then
for _, name in pairs(tag.skillNameList) do
if name == matchName then
if name:lower() == matchName then
match = true
break
end
end
else
match = (tag.skillName == matchName)
match = (tag.skillName and tag.skillName:lower() == matchName)
end
if tag.neg then
match = not match
Expand Down
2 changes: 1 addition & 1 deletion src/Modules/ModParser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4021,7 +4021,7 @@ local specialModList = {
["your travel skills are disabled"] = { flag("DisableSkill", { type = "SkillType", skillType = SkillType.Travel }) },
["aura skills other than ([%a%s]+) are disabled"] = function(_, name) return {
flag("DisableSkill", { type = "SkillType", skillType = SkillType.Aura }),
flag("EnableSkill", { type = "SkillId", skillId = gemIdLookup[name] }),
flag("EnableSkill", { type = "SkillName", skillName = name }),
} end,
["travel skills other than ([%a%s]+) are disabled"] = function(_, name) return {
flag("DisableSkill", { type = "SkillType", skillType = SkillType.Travel }),
Expand Down