Kurt 2024-07-04 18:42:27 -05:00
parent 66e8bf2645
commit 3f49a01ae8
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
//#define SUPPRESS
#define SUPPRESS
using System;
using System.Collections.Generic;

View file

@ -110,7 +110,10 @@ public static class SpriteUtil
}
if (flagIllegal)
{
var la = new LegalityAnalysis(pk, sav.Personal, storage);
var la = pk.GetType() == sav.PKMType // quick sanity check
? new LegalityAnalysis(pk, sav.Personal, storage)
: new LegalityAnalysis(pk, pk.PersonalInfo, storage);
if (!la.Valid)
sprite = ImageUtil.LayerImage(sprite, Resources.warn, 0, FlagIllegalShiftY);
else if (pk.Format >= 8 && MoveInfo.IsDummiedMoveAny(pk))