diff --git a/Libraries/Core/Helpers/BotGeneratorHelper.cs b/Libraries/Core/Helpers/BotGeneratorHelper.cs index 2da6c971..dc68043b 100644 --- a/Libraries/Core/Helpers/BotGeneratorHelper.cs +++ b/Libraries/Core/Helpers/BotGeneratorHelper.cs @@ -42,7 +42,13 @@ public class BotGeneratorHelper( .GetLatestValue(ContextVariableType.RAID_CONFIGURATION) ?.GetValue(); var raidIsNight = raidSettings?.TimeVariant == DateTimeEnum.PAST; - _botConfig.LootItemResourceRandomization.TryGetValue(botRole, out var randomisationSettings); + + RandomisedResourceDetails randomisationSettings = null; + if (botRole is not null) + { + _botConfig.LootItemResourceRandomization.TryGetValue(botRole, out randomisationSettings); + } + Upd itemProperties = new(); var hasProperties = false;