public override List<Section> GetDamagedSections(Tower t, int center) { int ranNum1 = Random.Range(1, Mathf.RoundToInt(100/missPercentage) + 1); List<Section> list = new List<Section>(); if (ranNum1 == 1)//If missed, miss { int ranNum2 = Random.Range(1, 3); CombatLog.addLine ("ran1 = " + ranNum1 + ". ran2 = " + ranNum2); if (ranNum2 == 1)//miss high { CombatLog.addLine("Miss Higher (blind)"); if (center + 1 < t.GetHeight())//Missed above tower { list.Add(t.GetSection(center+1)); } } else//miss low { CombatLog.addLine("Miss Lower (blind)"); if (center - 1 >= 0) //Missed below tower { list.Add (t.GetSection(center - 1)); } } } else{ list.Add(t.GetSection(center)); } return list; }