Skip to content

Commit

Permalink
Fix markings
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Jan 18, 2024
1 parent 3c8bf62 commit 6cd62b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pkmds.Web/Extensions/PKMExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public static int GetMarking(this PKM pokemon, int index)
return pokemon switch
{
IAppliedMarkings7 markings7 => (int)markings7.GetMarking(index),
IAppliedMarkings4 markings4 => markings4.GetMarking(index) ? 0 : 1,
IAppliedMarkings3 markings3 => markings3.GetMarking(index) ? 0 : 1,
IAppliedMarkings4 markings4 => markings4.GetMarking(index) ? 1 : 0,
IAppliedMarkings3 markings3 => markings3.GetMarking(index) ? 1 : 0,
_ => throw new ArgumentException("Pokemon does not implement IAppliedMarkings", nameof(pokemon)),
};
}
Expand Down

0 comments on commit 6cd62b0

Please sign in to comment.