mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 11:09:27 -05:00
Remove Pay Day from Mewtwo on transfer 1->7
Retains legality relevant to Bank transfer checks with Yellow's TMHM table.
This commit is contained in:
@@ -631,6 +631,9 @@ private CheckResult verifyVCEncounter(int baseSpecies)
|
||||
if (pkm.Egg_Location != ematch.EggLocation)
|
||||
return new CheckResult(Severity.Invalid, "Should not have an egg location.", CheckIdentifier.Encounter);
|
||||
|
||||
if (species == 150 && pkm.Moves.Contains(6))
|
||||
return new CheckResult(Severity.Invalid, "Mewtwo cannot be transferred while knowing Pay Day.", CheckIdentifier.Encounter);
|
||||
|
||||
return new CheckResult(CheckIdentifier.Encounter);
|
||||
}
|
||||
private void verifyLevel()
|
||||
|
||||
@@ -381,6 +381,18 @@ public PK7 convertToPK7()
|
||||
}
|
||||
|
||||
pk7.TradeMemory(Bank:true); // oh no, memories on gen7 pkm
|
||||
|
||||
if (pk7.Species == 150) // Pay Day Mewtwo
|
||||
{
|
||||
var moves = pk7.Moves;
|
||||
var index = Array.IndexOf(moves, 6);
|
||||
if (index != -1)
|
||||
{
|
||||
moves[index] = 0;
|
||||
pk7.Moves = moves;
|
||||
pk7.FixMoves();
|
||||
}
|
||||
}
|
||||
|
||||
pk7.RefreshChecksum();
|
||||
return pk7;
|
||||
|
||||
Reference in New Issue
Block a user