Skip to content

Commit a0d61a5

Browse files
authored
Merge pull request #1028 from Sidekick-Poe/feature/foulborn-colour
Fixed foulborn stats colours
2 parents 3f97ea3 + 322dce8 commit a0d61a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Sidekick.Apis.Poe.Trade/Parser/Stats/StatParser.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ Stat CreateStat(TextBlock block, List<TextLine> lines, List<StatDefinition> defi
149149
{
150150
var text = string.Join('\n', lines.Select(x => x.Text));
151151
var category = ParseCategory(text);
152-
if (definitions.DistinctBy(x => x.Category).Count() == 1 && definitions[0].Category != StatCategory.Undefined)
152+
if (category != StatCategory.Mutated
153+
&& definitions.DistinctBy(x => x.Category).Count() == 1
154+
&& definitions[0].Category != StatCategory.Undefined)
153155
{
154156
category = definitions[0].Category;
155157
}

0 commit comments

Comments
 (0)