From 954144b07907035c6bb6db986c3eeaa62b35fb6f Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 17 Jan 2025 22:40:53 +0000 Subject: [PATCH] Fixed build --- Core/Controllers/RepeatableQuestController.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Core/Controllers/RepeatableQuestController.cs b/Core/Controllers/RepeatableQuestController.cs index a2b7eab0..cb599169 100644 --- a/Core/Controllers/RepeatableQuestController.cs +++ b/Core/Controllers/RepeatableQuestController.cs @@ -319,11 +319,11 @@ public class RepeatableQuestController var targetsConfig = _repeatableQuestHelper.ProbabilityObjectArray(eliminationConfig.Targets); // Populate Elimination quest targets and their locations - foreach (var target in targetsConfig) { + foreach (var targetKvP in targetsConfig) { // Target is boss - if (target.Data.IsBoss) + if (targetKvP.Data.IsBoss.GetValueOrDefault(false)) { - var targets = questPool.Pool.Elimination.Targets.Get(target.Key); + var targets = questPool.Pool.Elimination.Targets.Get(targetKvP.Key); targets.Locations.Clear(); targets.Locations.Add("any"); } @@ -332,11 +332,11 @@ public class RepeatableQuestController // Non-boss targets var possibleLocations = locations; - var targets = questPool.Pool.Elimination.Targets.Get(target.Key); - var allowedLocations = - target.Key == "Savage" - ? targets.Locations.Where((location) => location != "laboratory") // Exclude labs for Savage targets. - : possibleLocations; + var targets = questPool.Pool.Elimination.Targets.Get(targetKvP.Key); + var targetsClone = _cloner.Clone(targets); + var allowedLocations = targetKvP.Key == "Savage" + ? targetsClone.Locations.Where((location) => location != "laboratory") // Exclude labs for Savage targets. + : targetsClone.Locations; targets.Locations.Clear();