Show shadow aura for colo/xd shadow mons

differentiate unpurified vs purified while in cxd, muh value added
This commit is contained in:
Kurt 2018-10-13 20:41:58 -07:00
parent 93af3e61b7
commit 9f1d850273

View file

@ -83,7 +83,14 @@ namespace PKHeX.WinForms
private static Image GetSprite(PKM pkm, bool isBoxBGRed = false)
{
return GetSprite(pkm.Species, pkm.AltForm, pkm.Gender, pkm.SpriteItem, pkm.IsEgg, pkm.IsShiny, pkm.Format, isBoxBGRed);
var img = GetSprite(pkm.Species, pkm.AltForm, pkm.Gender, pkm.SpriteItem, pkm.IsEgg, pkm.IsShiny, pkm.Format, isBoxBGRed);
if (pkm is IShadowPKM s && s.Purification > 0)
{
GetSpriteGlow(pkm, new byte[] { 75, 0, 130 }, out var pixels, out var baseSprite, true);
var glowImg = ImageUtil.GetBitmap(pixels, baseSprite.Width, baseSprite.Height, baseSprite.PixelFormat);
img = ImageUtil.LayerImage(glowImg, img, 0, 0);
}
return img;
}
private static Image GetSprite(SaveFile SAV)