private static void castEForSS(AIHeroClient champ, YorickTheStaffer.Evade.Skillshot skillshot) { var enemyminions = ObjectManager.Get <Obj_AI_Minion>().Where(x => !x.IsAlly && x.Health > 40 && x.IsValidTarget(550, false, Player.Position)); foreach (var minion in enemyminions) { if (skillshot.IsDanger(Player.Position.To2D().Extend(minion.Position.To2D(), Player.Distance(minion.Position) + 50))) { E.Cast(minion); return; } } castWForSS(champ, skillshot); }
private static void OnDetectSkillshot(YorickTheStaffer.Evade.Skillshot skillshot) { if (skillshot.Unit.Team == Player.Team) { return; } if (!W.IsReady() && !E.IsReady() || !Menu.Item("yorick.goldman.cancerxd").GetValue <KeyBind>().Active) { return; } var Blockchamps = HeroManager.Allies.Where <AIHeroClient>(x => x.Distance(Player) < 600 - x.BoundingRadius - 20); foreach (var champ in Blockchamps) { if (skillshots.Contains(skillshot.SpellData.SpellName) && skillshot.IsDanger(champ.Position.To2D())) { castEForSS(champ, skillshot); break; } } }
private static void castWForSS(AIHeroClient champ, YorickTheStaffer.Evade.Skillshot skillshot) { W.Cast(champ.Position.Extend(skillshot.Start.To3D(), champ.BoundingRadius) + 20); }