Reset IV backcolor if pkm cannot be hypertained (#2008)

fixes #2007
This commit is contained in:
Archit Date
2018-06-16 04:45:56 +08:00
committed by Kurt
parent e8d5252b8c
commit b9f4a554f0

View File

@@ -210,8 +210,8 @@ private void ClickStatLabel(object sender, MouseEventArgs e)
private void LoadHyperTraining()
{
if (!(pkm is IHyperTrain h))
return;
for (int i = 0; i < MT_IVs.Length; i++)
foreach (var iv in MT_IVs) iv.ResetBackColor();
else for (int i = 0; i < MT_IVs.Length; i++)
UpdateHyperTrainingFlag(i, h.GetHT(i));
}
private void UpdateEVTotals()