public static void doCombo(Obj_AI_Hero target) { if (target == null) { return; } useHydra(target); if (target.Distance(Player) < 500) { sumItems.cast(SummonerItems.ItemIds.Ghostblade); } if (target.Distance(Player) < 500 && (Player.Health / Player.MaxHealth) * 100 < 85) { sumItems.cast(SummonerItems.ItemIds.BotRK, target); } if (YasuoSharp.Config.Item("smartR").GetValue <bool>() && R.IsReady()) { useRSmart(); } if (YasuoSharp.Config.Item("smartW").GetValue <bool>()) { putWallBehind(target); } if (YasuoSharp.Config.Item("useEWall").GetValue <bool>()) { eBehindWall(target); } Obj_AI_Base goodTarg = canDoEQEasly(target); var outPut = Prediction.GetPrediction(goodTarg, 700 + Player.MoveSpeed); if (goodTarg != null && outPut.UnitPosition.Distance(Player.Position) <= 470) { E.Cast(goodTarg); SmoothMouse.addMouseEvent(target.Position); Q.Cast(target); } if (!useESmart(target)) { List <Obj_AI_Hero> ignore = new List <Obj_AI_Hero>(); ignore.Add(target); Obj_AI_Base bestos = null; gapCloseE(target.Position.To2D()); } useQSmart(target); }
public static void doCombo(AIHeroClient target) { if (target == null) { return; } useHydra(target); if (target.LSDistance(Player) < 500) { sumItems.cast(SummonerItems.ItemIds.Ghostblade); } if (target.LSDistance(Player) < 500 && (Player.Health / Player.MaxHealth) * 100 < 85) { sumItems.cast(SummonerItems.ItemIds.BotRK, target); } if (YasuoSharp.smartW["smartW"].Cast <CheckBox>().CurrentValue) { putWallBehind(target); } if (YasuoSharp.smartR["useEWall"].Cast <CheckBox>().CurrentValue) { eBehindWall(target); } Obj_AI_Base goodTarg = canDoEQEasly(target); var outPut = LeagueSharp.Common.Prediction.GetPrediction(goodTarg, 700 + Player.MoveSpeed); if (goodTarg != null && outPut.UnitPosition.LSDistance(Player.Position) <= 470) { E.Cast(goodTarg); Q.Cast(target); } if (!useESmart(target)) { List <AIHeroClient> ignore = new List <AIHeroClient>(); ignore.Add(target); gapCloseE(target.Position.LSTo2D()); } useQSmart(target); }