private static void CastQ(AIBaseClient t) { var poutput = Q1.GetPrediction(t); var col = poutput.CollisionObjects.Count(ColObj => !ColObj.IsAlly && ColObj.IsMinion() && !ColObj.IsDead); if (col < 4 && poutput.Hitchance >= HitChance.VeryHigh) { Q.Cast(poutput.CastPosition); } }
public void UpdateSize() { int index = 0; ColObj Obj = (ColObj)ColObjects.getDatabyIndex(index); while (Obj != null) { Rectangle temp = Obj.getRect(); if (temp.X < rect.X) { rect.X = temp.X; } if (temp.Y < rect.Y) { rect.Y = temp.Y; } if (rect.Width < temp.Width) { if (rect.X == 0) { rect.Width = (temp.Width + temp.X); } else { rect.Width = (temp.Width); } } if (rect.Height < temp.Height + temp.Y) { if (rect.Y == 0) { rect.Height = (temp.Y + temp.Height); } else { rect.Height = temp.Height; } } index++; Obj = (ColObj)ColObjects.getDatabyIndex(index); } }