public static int AoE(this Spell spell, Vector3 vector3) { var rect = new RectanglePoly(Config.Player.ServerPosition, Config.Player.ServerPosition.Extend(vector3, spell.Range), spell.Width); return(GameObjects.AllyHeroes.Count(a => a.IsValidTarget() && rect.IsInside(spell.GetPrediction(a).CastPosition))); }