private void Draw(EventArgs args) { if (_drawR.Active) { Render.Circle.DrawCircle(ObjectManager.Player.Position, 375, _drawR.Color); } if (_drawFlashUlt.Active && _r.IsReady()) { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(_flash != null && _flash.IsReady() ? 375 + 425 : 375) && _r.IsKillable(enemy))) { var screenPos = Drawing.WorldToScreen(enemy.Position); Drawing.DrawText(screenPos.X - 50, screenPos.Y - 50, _drawFlashUlt.Color, "Flash-R Possible!"); } } //foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget())) //{ // var screenPos = Drawing.WorldToScreen(enemy.Position); // Drawing.DrawText(screenPos.X - 50, screenPos.Y - 50, _drawFlashUlt.Color, (enemy.Health - HealthPrediction.GetHealthPrediction(enemy,1)).ToString()); //} //Drawing.DrawText(200, 100, Color.Red, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).GetState().ToString() + " " + (int)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).GetState()); }
public override void Execute(AIHeroClient target) { if (!CanBeCast()) { return; } if (_r.CanBeCast() && Instance.Name != "GarenE" && target.IsValidTarget() && _r.IsKillable(target)) { Cast(); return; } if ((_q.Instance.State == SpellState.Cooldown || _q.Instance.State == SpellState.NotLearned) && !ObjectManager.Player.HasBuff("GarenQ") && (!OnlyAfterAuto || !AAHelper.WillAutoattackSoon || _recentAutoattack) && HeroManager.Enemies.Any(enemy => enemy.IsValidTarget() && Instance.Name == "GarenE" && enemy.Position.Distance(ObjectManager.Player.Position) < 325)) { Provider.Orbwalker.SetAttack(false); _resetOrbwalker = true; Cast(); } }