private static void CastW(Obj_AI_Hero target) { if (!MegaW.IsReady() || !target.IsValidTarget(MegaW.Range)) { return; } var wpred = MegaW.GetPrediction(target); if (wpred.Hitchance >= HitChance.High && player.Distance(target) <= MegaW.Range) { MegaW.Cast(wpred.CastPosition, PacketCast); } }
private static void Clear() { var allminions = MinionManager.GetMinions(player.ServerPosition, MiniQ.Range, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth); foreach (var minions in allminions) { var qDmg = player.GetSpellDamage(minions, SpellSlot.Q); var qpredmin = MiniQ.GetPrediction(minions); var qpredmeg = MegaQ.GetPrediction(minions); if (minions.IsValidTarget(MegaQ.Range) && MegaGnar) { if (SKOMenu.Item("UseQC").GetValue <bool>() && MegaQ.IsReady() && player.Distance(minions) <= MegaQ.Range) { MegaQ.Cast(minions, PacketCast); } if (SKOMenu.Item("UseWC").GetValue <bool>() && MegaW.IsReady() && player.Distance(minions) <= MegaW.Range) { MegaW.Cast(minions, PacketCast); } } else if (minions.IsValidTarget(MiniQ.Range) && !MegaGnar) { if (SKOMenu.Item("UseQC").GetValue <bool>() && MiniQ.IsReady() && player.Distance(minions) <= MiniQ.Range) { MegaQ.Cast(minions, PacketCast); } } if (SKOMenu.Item("UseItemsClear").GetValue <bool>()) { if (player.Distance(minions) < player.AttackRange + player.BoundingRadius) { TMT.Cast(); HYD.Cast(); } YMG.Cast(); } } }