private static void ConeFarm(Spell spell, List <Obj_AI_Base> minions, int min, float overrideWidth = -1f) { var spellWidth = overrideWidth > 0 ? overrideWidth : spell.Width; var pred = spell.GetCircularFarmLocation(minions, spellWidth); if (pred.MinionsHit >= min) { spell.Cast(pred.Position); } }
private static void ConeFarm(Spell spell, List<Obj_AI_Base> minions, int min, float overrideWidth = -1f) { var spellWidth = overrideWidth > 0 ? overrideWidth : spell.Width; var pred = spell.GetCircularFarmLocation(minions, spellWidth); if (pred.MinionsHit >= min) { spell.Cast(pred.Position); } }