mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
parent
30e549faf5
commit
ba19efb793
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
public static bool IsShiny(this ITrainerID tr, uint pid, int gen = 7)
|
||||
{
|
||||
var xor = tr.SID ^ tr.TID ^ (pid >> 16) ^ pid;
|
||||
var xor = tr.SID ^ tr.TID ^ (pid >> 16) ^ (pid & 0xFFFF);
|
||||
return xor < (gen >= 7 ? 16 : 8);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue