refactor: code review suggestions

This commit is contained in:
ppoelzl
2021-03-05 00:01:21 +01:00
parent 234cee844c
commit a1d9551928
2 changed files with 2 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ function ModListClass:ListInternal(context, result, cfg, flags, keywordFlags, so
for i = 1, #self do
local mod = self[i]
if mod.name == modName and mod.type == "LIST" and band(flags, mod.flags) == mod.flags and MatchKeywordFlags(keywordFlags, mod.keywordFlags) and (not source or mod.source:match("[^:]+") == source) then
local value
if mod[1] then
local value = context:EvalMod(mod, cfg) or nullValue
if value then

View File

@@ -1517,5 +1517,5 @@ return {
["kill_enemy_on_hit_if_under_10%_life"] = {
mod("CullPercent", "MAX", nil),
value = 10
}
},
}