mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 00:07:15 +00:00
Update EncounterArea7g/8g
Now properly grabs forms for Unown, Arceus, Vivillon, and Silvally.
This commit is contained in:
parent
77aefbf20d
commit
9ee27aaf8f
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ namespace PKHeX.Core
|
|||
|
||||
private static EncounterArea7g GetArea(byte[] data)
|
||||
{
|
||||
var sf = BitConverter.ToInt16(data, 0);
|
||||
var sf = BitConverter.ToUInt16(data, 0);
|
||||
int species = sf & 0x7FF;
|
||||
int form = sf >> 11;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace PKHeX.Core
|
|||
|
||||
private static EncounterArea8g GetArea(byte[] data)
|
||||
{
|
||||
var sf = BitConverter.ToInt16(data, 0);
|
||||
var sf = BitConverter.ToUInt16(data, 0);
|
||||
int species = sf & 0x7FF;
|
||||
int form = sf >> 11;
|
||||
|
||||
|
|
Loading…
Reference in a new issue