mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Remove shadow info index shift
Thanks @PP-theSLAYER ! https://projectpokemon.org/home/forums/topic/53405-bug-oddity-with-shadow-recognition/?do=findComment&comment=246125
This commit is contained in:
parent
63c705061d
commit
e81e5f31da
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ namespace PKHeX.Core
|
|||
// Get Shadow Data
|
||||
var pk = (XK3)base.GetStoredSlot(offset);
|
||||
if (pk.ShadowID > 0 && pk.ShadowID < ShadowInfo.Count)
|
||||
pk.Purification = ShadowInfo[pk.ShadowID - 1].Purification;
|
||||
pk.Purification = ShadowInfo[pk.ShadowID].Purification;
|
||||
return pk;
|
||||
}
|
||||
|
||||
|
@ -295,7 +295,7 @@ namespace PKHeX.Core
|
|||
if (pk.ShadowID <= 0 || pk.ShadowID >= ShadowInfo.Count)
|
||||
return;
|
||||
|
||||
var entry = ShadowInfo[pk.ShadowID - 1];
|
||||
var entry = ShadowInfo[pk.ShadowID];
|
||||
entry.Purification = pk.Purification;
|
||||
entry.Species = pk.Species;
|
||||
entry.PID = pk.PID;
|
||||
|
|
Loading…
Reference in a new issue