mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-27 15:15:40 -05:00
Flag pokerus on LGPE, traded starter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace PKHeX.Core;
|
||||
namespace PKHeX.Core;
|
||||
|
||||
/// <summary>
|
||||
/// Logic pertaining to Pokérus -- the virus that doubles EVs gained from battle.
|
||||
@@ -20,6 +20,7 @@ public static class Pokerus
|
||||
public static bool IsObtainable(PKM pk) => pk switch
|
||||
{
|
||||
PA8 pa8 => HasVisitedBDSPorSWSH(pa8),
|
||||
PB7 => false,
|
||||
_ => true,
|
||||
};
|
||||
|
||||
|
||||
@@ -73,6 +73,8 @@ private void VerifyHandlerState(LegalityAnalysis data, bool neverOT)
|
||||
data.AddLine(GetInvalid(LegalityCheckStrings.LTransferHTMismatchName));
|
||||
if (pkm is IHandlerLanguage h && h.HT_Language != tr.Language)
|
||||
data.AddLine(GetInvalid(LegalityCheckStrings.LTransferHTMismatchLanguage));
|
||||
if (Info.EncounterMatch is EncounterStatic7b { Location: 28 }) // Starter, untradeable
|
||||
data.AddLine(GetInvalid(LegalityCheckStrings.LTransferCurrentHandlerInvalid));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user