@@ -219,8 +219,16 @@ local directiveTable = { }
219
219
local fromSpec = nil
220
220
local minionList = nil
221
221
222
+
223
+ local whiteListStat = {
224
+ [" is_area_damage" ] = true ,
225
+ }
222
226
local loadedStatDescriptionLua = { }
223
227
function checkModInStatDescription (statDescription , line )
228
+ if whiteListStat [line ] then
229
+ return true
230
+ end
231
+
224
232
local searchIn = statDescription
225
233
local stat
226
234
@@ -872,11 +880,7 @@ directiveTable.mods = function(state, args, out)
872
880
873
881
-- validate stats
874
882
local printHeader = true
875
- for i = 1 , # set .stats do
876
- if not set .levels [i ] or type (set .levels [i ]) ~= " number" then
877
- break
878
- end
879
- local stat = set .stats [i ]
883
+ for _ , stat in ipairs (set .stats ) do
880
884
if not checkModInStatDescription (state .statDescriptionScope , stat .id ) then
881
885
if printHeader then
882
886
printHeader = false
@@ -885,6 +889,16 @@ directiveTable.mods = function(state, args, out)
885
889
ConPrintf (" Stat %s not found in stat description %s" , stat .id , state .statDescriptionScope )
886
890
end
887
891
end
892
+ for _ , listStat in ipairs (set .constantStats ) do
893
+ local stat = listStat [1 ]
894
+ if not checkModInStatDescription (state .statDescriptionScope , stat ) then
895
+ if printHeader then
896
+ printHeader = false
897
+ ConPrintf (" ====================================\n Skill %s: " , state .infoGrantedId )
898
+ end
899
+ ConPrintf (" Constant Stat %s not found in stat description %s" , stat , state .statDescriptionScope )
900
+ end
901
+ end
888
902
state .set = nil
889
903
end
890
904
0 commit comments