Skip to content

Commit

Permalink
add to traceback if fallback IVs were used
Browse files Browse the repository at this point in the history
closes #219
  • Loading branch information
architdate committed Sep 21, 2023
1 parent e0ccccd commit 88d43dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PKHeX.Core.AutoMod/AutoMod/APILegality.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,17 @@ List<ALMTraceback> tb
break;
}

if (!pk.IVs.SequenceEqual(set.IVs))
{
tb.Add(
new()
{
Identifier = PID_IV,
Comment = $"Fallback IVs being used instead of Specified IVs"
}
);
}

// Handle mismatching abilities due to a PID re-roll
// Check against ability index because the pokemon could be a pre-evo at this point
if (pk.Ability != set.Ability)
Expand Down

0 comments on commit 88d43dd

Please sign in to comment.