mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 11:55:43 -05:00
@@ -180,6 +180,10 @@ internal static bool GetCanKnowMove(PKM pkm, int move, int generation, IReadOnly
|
||||
{
|
||||
if (pkm.Species == (int)Species.Smeargle)
|
||||
return !InvalidSketch.Contains(move);
|
||||
|
||||
if (generation >= 8 && MoveEgg.GetIsSharedEggMove(pkm, generation, move))
|
||||
return true;
|
||||
|
||||
return MoveList.GetValidMoves(pkm, version, evos, generation, LVL: true, Relearn: true, Tutor: true, Machine: true).Contains(move);
|
||||
}
|
||||
|
||||
|
||||
@@ -56,9 +56,9 @@ private CheckResult VerifyCommonMemory(PKM pkm, int handler, int gen, LegalInfo
|
||||
|
||||
// Move
|
||||
// {0} studied about how to use {2} in a Box, thinking about {1}. {4} that {3}.
|
||||
case 80 when memory.Variable == 0 || !Legal.GetCanKnowMove(pkm, gen, memory.Variable, info.EvoChainsAllGens[gen]):
|
||||
case 80 when memory.Variable == 0 || !Legal.GetCanKnowMove(pkm, memory.Variable, gen, info.EvoChainsAllGens[gen]):
|
||||
// {0} practiced its cool pose for the move {2} in a Box, wishing to be praised by {1}. {4} that {3}.
|
||||
case 81 when memory.Variable == 0 || !Legal.GetCanKnowMove(pkm, gen, memory.Variable, info.EvoChainsAllGens[gen]):
|
||||
case 81 when memory.Variable == 0 || !Legal.GetCanKnowMove(pkm, memory.Variable, gen, info.EvoChainsAllGens[gen]):
|
||||
return GetInvalid(string.Format(LMemoryArgBadMove, memory.Handler));
|
||||
|
||||
// Species
|
||||
|
||||
Reference in New Issue
Block a user