Fixed weekly boss elimination quest generation not finding a location

This commit is contained in:
Chomp
2025-06-30 12:41:49 +01:00
parent 25c3eee4fa
commit 62a9cc28d5
@@ -422,19 +422,23 @@ public class EliminationQuestGenerator(
return false;
}
// Specific location
locations = locations.Where(location => location != "any").ToList();
if (locations.Count == 0)
// Don't filter when there's less than 2 options
if (locations.Count > 1)
{
// Never should reach this if everything works out
logger.Error(
localisationService.GetText(
"quest-repeatable_elimination_generation_failed_please_report"
)
);
// Specific location
locations = locations.Where(location => location != "any").ToList();
if (locations.Count == 0)
{
// Never should reach this if everything works out
logger.Error(
localisationService.GetText(
"quest-repeatable_elimination_generation_failed_please_report"
)
);
locationKey = null;
return false;
locationKey = null;
return false;
}
}
// Get name of location we want elimination to occur on