Parallel.ForEach(SpellEffectScaling, effect =>
{
try
{
if (!SpellEffect.ContainsKey((int)effect.Value.SpellEffectId))
{
Console.WriteLine(
$"SpellEffectScaling: Unknown spell effect {effect.Value.SpellEffectId} referenced, ignoring!");
return;
}
foreach (var spellInfoData in SpellEffect)
spellInfoData.Value.SpellEffectScalingEntry = effect.Value;
}
catch (Exception e)
{
exceptions.Enqueue(e);
}
});