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:
Kurt 2019-06-20 20:39:34 -07:00
parent 63c705061d
commit e81e5f31da

View file

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