From b9b9f7c0ca3824c670d525e4c46e52cd72f3a8d3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 24 Sep 2017 14:11:00 -0400 Subject: Fixed Unown form determination --- gba/source/serialize.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gba/source/serialize.c') diff --git a/gba/source/serialize.c b/gba/source/serialize.c index 8929689..f5446ef 100644 --- a/gba/source/serialize.c +++ b/gba/source/serialize.c @@ -135,10 +135,10 @@ void PokemonIntermediateInit( if (sub0->species == UNOWN_SPECIES_INDEX) { u8 unownDeterminer = - ((bpkm->personality & 0x07000000) >> 18) - | ((bpkm->personality & 0x00070000) >> 12) - | ((bpkm->personality & 0x00000700) >> 6) - | (bpkm->personality & 0x00000007); + ((bpkm->personality & 0x03000000) >> 18) + | ((bpkm->personality & 0x00030000) >> 12) + | ((bpkm->personality & 0x00000300) >> 6) + | (bpkm->personality & 0x00000003); pki->unownLetter = (unownDeterminer % 28); } -- cgit 1.4.1