Update WC8.cs

This commit is contained in:
Kurt 2021-02-03 13:29:48 -08:00
parent 726f100496
commit 7d5596995d

View file

@ -290,7 +290,7 @@ namespace PKHeX.Core
}
public int GetLanguage(int redeemLanguage) => Data[GetLanguageOffset(GetLanguageIndex(redeemLanguage))];
private static int GetLanguageOffset(int index) => 0x12C + (index * 0x1C) + 0x1A;
private static int GetLanguageOffset(int index) => 0x30 + (index * 0x1C) + 0x1A;
public bool GetHasOT(int language) => BitConverter.ToUInt16(Data, GetOTOffset(language)) != 0;
@ -640,6 +640,10 @@ namespace PKHeX.Core
return false;
}
// Duplicate card; one with Nickname specified and another without.
if (CardID == 0122 && pkm.IsNicknamed && !GetIsNicknamed(pkm.Language))
return false;
// PID Types 0 and 1 do not use the fixed PID value.
// Values 2,3 are specific shiny states, and 4 is fixed value.
// 2,3,4 can change if it is a traded egg to ensure the same shiny state.