Allow shared moves from daycare as "can know move"

See b58f3bbc22
This commit is contained in:
Kurt 2020-12-21 16:49:42 -08:00
parent 8a0e7d90e0
commit b71df7b064
2 changed files with 6 additions and 2 deletions

View file

@ -180,6 +180,10 @@ namespace PKHeX.Core
{
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);
}

View file

@ -56,9 +56,9 @@ namespace PKHeX.Core
// 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