mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Update WC8.cs
This commit is contained in:
parent
726f100496
commit
7d5596995d
1 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue