private static void QLastHit(Obj_AI_Base minion) { bool castQ = ((WaveClear["waveUseQLH"].GetValue <MenuBool>()) || WaveClear["waveUseQ"].GetValue <MenuBool>() && WaveClear["waveActive"].GetValue <MenuBool>()); if (castQ) { var distance = Extensions.Distance(player, minion); var t = 250 + (int)distance / 2; var predHealth = Health.GetPrediction(minion, t, 0); // Console.WriteLine(" Distance: " + distance + " timer : " + t + " health: " + predHealth); if (predHealth > 0 && Q.CanKill(minion)) { Q.Cast(minion); } } }