mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-22 15:14:09 -05:00
Fix, stop using alt-ShinyIcon outside the box (#929)
with no filter for slot value, the alt-icon will be used for PKM-QR icon, team, and others.
This commit is contained in:
@@ -103,7 +103,7 @@ private static Image getSprite(PKM pkm, SaveFile SAV, int box, int slot, bool fl
|
||||
return null;
|
||||
|
||||
bool isBoxBGRed = false;
|
||||
if (SAV.Generation == 7 || SAV.Generation == 6)
|
||||
if (pkm.Species != 0 && slot >= 0 && slot < 30 && (SAV.Generation == 7 || SAV.Generation == 6))
|
||||
{
|
||||
switch (SAV.getBoxWallpaper(box))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user