mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-16 00:52:41 -05:00
Handle Calyrex TR bug
Co-Authored-By: ReignOfComputer <2667537+ReignOfComputer@users.noreply.github.com>
This commit is contained in:
parent
9b2d7c0341
commit
0741c8c035
|
|
@ -241,6 +241,8 @@ private static GameVersion GetIsMachine8(PKM pkm, int species, int move, int for
|
|||
return GameVersion.SWSH;
|
||||
if (((PK8) pkm).GetMoveRecordFlag(i))
|
||||
return GameVersion.SWSH;
|
||||
if (i == 12 && species == (int)Species.Calyrex && form == 0) // TR12
|
||||
return GameVersion.SWSH; // Agility Calyrex without TR glitch.
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -446,7 +448,18 @@ private static void AddMachineSWSH(List<int> r, int species, int form, PKM pkm)
|
|||
if (!tmhm[i + 100])
|
||||
continue;
|
||||
if (!pk8.GetMoveRecordFlag(i))
|
||||
continue;
|
||||
{
|
||||
if (i == 12 && species == (int) Species.Calyrex && form == 0) // TR12
|
||||
{
|
||||
// Unfuse logic does not check if the currently known TR move has the flag or not.
|
||||
// Agility can be learned via Level Up while fused, but only via TR when Unfused.
|
||||
// We'll let Agility be a legal TR move without the flag, only for Calyrex!
|
||||
}
|
||||
else
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
r.Add(Legal.TMHM_SWSH[i + 100]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user