Skip to content

Commit

Permalink
Fixed affixes and aspects from Maxroll imports being added to the wro…
Browse files Browse the repository at this point in the history
…ng item type.
  • Loading branch information
josdemmers committed Jan 30, 2024
1 parent 3605240 commit 32ea1a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions D4Companion.Services/BuildsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void CreatePresetFromMaxrollBuild(MaxrollBuild maxrollBuild, string profi
}

// Add all explicit affixes for current item.Value
foreach(var explicitAffix in maxrollBuild.Data.Items[item.Key].Explicits)
foreach(var explicitAffix in maxrollBuild.Data.Items[item.Value].Explicits)
{
int affixSno = explicitAffix.Nid;
string affixId = _affixManager.GetAffixId(affixSno);
Expand All @@ -162,7 +162,7 @@ public void CreatePresetFromMaxrollBuild(MaxrollBuild maxrollBuild, string profi
}

// Find all aspects / legendary powers
int legendaryPower = maxrollBuild.Data.Items[item.Key].LegendaryPower.Nid;
int legendaryPower = maxrollBuild.Data.Items[item.Value].LegendaryPower.Nid;
if (legendaryPower != 0)
{
aspects.Add(legendaryPower);
Expand Down
4 changes: 2 additions & 2 deletions D4Companion/common.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<FileVersion>2.5.1.0</FileVersion>
<Version>2.5.1.0</Version>
<FileVersion>2.5.2.0</FileVersion>
<Version>2.5.2.0</Version>
<Copyright>Copyright © 2024</Copyright>
<TargetFramework>net6.0-windows</TargetFramework>
</PropertyGroup>
Expand Down

0 comments on commit 32ea1a8

Please sign in to comment.