private static void OnWaveclear() { var minionsInRange = MinionManager.GetMinions( player.ServerPosition, SkillsHandler.Spells[SpellSlot.Q].Range, MinionTypes.All, MinionTeam.NotAlly); var minionsInRangeE = MinionManager.GetMinions( player.ServerPosition, SkillsHandler.Spells[SpellSlot.E].Range, MinionTypes.All, MinionTeam.NotAlly); if (!ManaManager.CanLaneclear()) { return; } if (GetMenuValue <bool>("kassadin.waveclear.useQ") && SkillsHandler.Spells[SpellSlot.Q].IsReady()) { var qFarm = minionsInRange.FirstOrDefault(x => SkillsHandler.Spells[SpellSlot.Q].IsKillable(x)); if (qFarm.IsValidTarget()) { SkillsHandler.Spells[SpellSlot.Q].CastOnUnit(qFarm); } } if (GetMenuValue <bool>("kassadin.waveclear.useE") && SkillsHandler.Spells[SpellSlot.E].IsReady() && ECanCast) { if (minionsInRangeE.Count >= 1) { foreach (var x in minionsInRangeE) { if (x.IsValidTarget() && MinionManager.GetMinions(x.ServerPosition, 275).Count >= 3) { SkillsHandler.Spells[SpellSlot.E].Cast(x.ServerPosition); } } } } }
private static void OnWaveclear() { var minionsInRange = MinionManager.GetMinions( player.ServerPosition, SkillsHandler.QShard.Range, MinionTypes.All, MinionTeam.NotAlly); var minionsInRangeW = MinionManager.GetMinions( player.ServerPosition, SkillsHandler.Spells[SpellSlot.W].Range, MinionTypes.All, MinionTeam.NotAlly); if (!ManaManager.CanLaneclear() && !ManaManager.PlayerHasPassive()) { return; } if (GetMenuValue <bool>("lissandra.waveclear.useQ") && SkillsHandler.Spells[SpellSlot.Q].IsReady()) { var qLineFarm = SkillsHandler.Spells[SpellSlot.Q].GetLineFarmLocation(minionsInRange); if (qLineFarm.MinionsHit >= 3) { SkillsHandler.Spells[SpellSlot.Q].Cast(qLineFarm.Position); } } foreach (var minion in minionsInRangeW.Where(x => minionsInRangeW.Count >= 2 && player.GetSpellDamage(x, SpellSlot.W) - 10 >= HealthPrediction.GetHealthPrediction(x, (int)(SkillsHandler.Spells[SpellSlot.W].Delay)))) { if (GetMenuValue <bool>("lissandra.waveclear.useW")) { SkillsHandler.Spells[SpellSlot.W].Cast(minion); } } }