mirror of
https://github.com/kwsch/PKHeX
synced 2025-02-17 05:48:44 +00:00
Require tracker for HOME gifts too
This commit is contained in:
parent
72e209a156
commit
98f602fc87
1 changed files with 6 additions and 3 deletions
|
@ -118,14 +118,17 @@ namespace PKHeX.Core
|
|||
if (!pi.IsPresentInGame) // Can't transfer
|
||||
{
|
||||
data.AddLine(GetInvalid(LTransferBad));
|
||||
return;
|
||||
}
|
||||
else if (data.EncounterMatch.Version == GameVersion.GO)
|
||||
|
||||
var enc = data.EncounterMatch;
|
||||
if (enc.Version == GameVersion.GO || (enc is WC8 wc && wc.IsHOMEGift))
|
||||
{
|
||||
VerifyHOMETracker(data, pkm);
|
||||
}
|
||||
else if (data.Info.Generation < 8 && pkm.Format >= 8)
|
||||
else if (enc.Generation < 8 && pkm.Format >= 8)
|
||||
{
|
||||
if (data.EncounterMatch is EncounterStatic7 s && FormConverter.IsTotemForm(s.Species, s.Form, 7))
|
||||
if (enc is EncounterStatic7 s && FormConverter.IsTotemForm(s.Species, s.Form, 7))
|
||||
{
|
||||
if (Legal.Totem_NoTransfer.Contains(s.Species))
|
||||
data.AddLine(GetInvalid(LTransferBad));
|
||||
|
|
Loading…
Add table
Reference in a new issue