Fix gen8 mysterygift shiny xor check

lol oops
Closes #3500
This commit is contained in:
Kurt 2022-05-30 00:30:15 -07:00
parent 30e549faf5
commit ba19efb793

View file

@ -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);
}
}