public override void Execute() { var target = TargetSelector2.GetTarget(Q.Range, DamageType.Physical); if (target != null && target.IsValidTarget(Q.Range)) { PassiveManager.CastAutoAttack(target); if (Settings.UseQ && Q.IsReady() && target.IsValidTarget(Q.Range) && !target.IsZombie && Player.Instance.ManaPercent > Settings.Mana) { SpellManager.CastQ(); } if (Settings.UseTiamatHydra) { ItemManager.UseHydra(target); } if (Settings.UseE && E.IsReady() && target.IsValidTarget(E.Range) && !target.IsZombie && Player.Instance.ManaPercent > Settings.Mana) { E.Cast(); } if (Settings.UseR && R.IsReady() && target.IsValidTarget(R.Range) && !target.IsZombie && Player.Instance.ManaPercent > Settings.Mana) { SpellManager.CastR(); } } }
public override void Execute() { var target = TargetSelector2.GetTarget(Q.Range, DamageType.Physical); if (target != null && target.IsValidTarget(R.Range)) { PassiveManager.CastAutoAttack(target); if (Settings.UseYomuus) { ItemManager.UseYomu(); } if (Settings.UseQ && Q.IsReady() && target.IsValidTarget(Q.Range) && !target.IsZombie) { SpellManager.CastQ(); } if (Settings.UseCutlassBotrk) { ItemManager.UseCastables(); } if (Settings.UseTiamatHydra) { ItemManager.UseHydra(target); } if (Settings.UseE && E.IsReady() && target.IsValidTarget(E.Range) && !target.IsZombie) { E.Cast(); } if (Settings.UseR && R.IsReady() && target.IsValidTarget(R.Range) && !target.IsZombie && Config.Modes.Combo.UseRonTarget(target.ChampionName) && Player.Instance.HealthPercent <= Config.Modes.Combo.RSliderValue()) { SpellManager.CastR(); } } }