Fixes for unit tests

This commit is contained in:
2025-06-07 11:34:37 +02:00
parent 273d26057a
commit af0126e413
5 changed files with 26 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ public static class AbilityDataLoader
var effect = serialized.Effect;
var parameters = serialized.Parameters.ToDictionary(x => (StringKey)x.Key, x => x.Value.ToParameter());
StringKey? effectName = effect == null ? null! : new StringKey(effect);
var effectName = string.IsNullOrWhiteSpace(effect) ? (StringKey?)null : new StringKey(effect);
var flags = serialized.Flags.Select(x => new StringKey(x)).ToImmutableHashSet();