-
I'm working on an API that uses PKHeX as a dependency and I'd like to add a check for whether moves are fishy, in this case, I believe Bestow is given the caution icon in the GUI because it is an event-only move, but I can't find which part of the code identifies a move as fishy. I know there's the LegalityAnalysis.Results:
But there's nothing in here about moves being fishy. I'm looking for whatever part triggers the caution icon in the GUI. An optional setting to set these warnings to invalidate the Pokemon could potentially be good, as this example, Pikachu in SV is untradeable but is seen as legal by PKHeX. Any help would be appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That is not a "fishy move", that indicator is there for moves that a Pokémon can have in its moveset in SWSH from past games, but is unusable in SWSH. The implementation in PKHeX matches what Pokémon HOME does. Starting with BDSP, moves get reset to match the target game's learnset, but PKHeX still stores byte arrays for usable/unusable moves for each given context. In your example, Bestow is not usable in SV, so PKHeX yields the yellow error icon. |
Beta Was this translation helpful? Give feedback.
PKHeX/PKHeX.Core/Moves/MoveInfo.cs
Line 100 in aa841ae