private static void onDraw(EventArgs args) { try { if (!Config.Item("doDraw").GetValue <bool>()) { if (Config.Item("drawHp").GetValue <bool>()) { foreach ( var enemy in ObjectManager.Get <Obj_AI_Hero>() .Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible)) { hpi.unit = enemy; hpi.drawDmg(Riven.rushDmgBasedOnDist(enemy), Color.Yellow); } } foreach ( Obj_AI_Hero enHero in ObjectManager.Get <Obj_AI_Hero>().Where(enHero => enHero.IsEnemy && enHero.Health > 0)) { Utility.DrawCircle(enHero.Position, enHero.BoundingRadius + Riven.E.Range + Riven.Player.AttackRange, (Riven.rushDown) ? Color.Red : Color.Blue); //Drawing.DrawCircle(enHero.Position, enHero.BoundingRadius + Riven.E.Range+Riven.Player.AttackRange, Color.Blue); } } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private static void OnEndScene(EventArgs args) { if (Config.Item("drawHp").GetValue <bool>()) { foreach ( var enemy in ObjectManager.Get <Obj_AI_Hero>() .Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible)) { hpi.unit = enemy; hpi.drawDmg(Riven.rushDmgBasedOnDist(enemy), Color.Yellow); } } }