mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 18:16:54 -05:00
Add gen4 forme move handling
Shaymin case reported, deoxys defense at level 100 with zap cannon was not recognized as legal. Closes #1355 via provided fix Closes #1367, did not address Deoxys case
This commit is contained in:
@@ -1759,12 +1759,13 @@ private static IEnumerable<int> GetMoves(PKM pkm, int species, int minlvlG1, int
|
||||
}
|
||||
case 4:
|
||||
{
|
||||
int index = PersonalTable.HGSS.GetFormeIndex(species, 0);
|
||||
int index = PersonalTable.HGSS.GetFormeIndex(species, form);
|
||||
if (index == 0)
|
||||
return r;
|
||||
if (LVL)
|
||||
{
|
||||
r.AddRange(LevelUpDP[index].GetMoves(lvl));
|
||||
if (index < LevelUpDP.Length)
|
||||
r.AddRange(LevelUpDP[index].GetMoves(lvl));
|
||||
r.AddRange(LevelUpPt[index].GetMoves(lvl));
|
||||
r.AddRange(LevelUpHGSS[index].GetMoves(lvl));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user