Validate if item is in db before passing to IsOfBaseclass

This commit is contained in:
Archangel
2025-12-18 16:22:00 +01:00
parent 8789000d97
commit d813566f1e
@@ -1820,10 +1820,13 @@ public class BotEquipmentModGenerator(
scopeSlot?.All(slot =>
slot.Properties.Filters.FirstOrDefault()
.Filter.All(tpl =>
itemHelper.IsOfBaseclasses(tpl, whitelistedSightTypes) || itemHelper.IsOfBaseclass(tpl, BaseClasses.MOUNT)
itemHelper.IsItemInDb(tpl)
&& (
itemHelper.IsOfBaseclasses(tpl, whitelistedSightTypes)
|| itemHelper.IsOfBaseclass(tpl, BaseClasses.MOUNT)
)
)
)
?? false
) ?? false
)
// Add mod to allowed list
{