Esempio n. 1
0
 /// <summary>
 ///     On End Scene
 /// </summary>
 /// <param name="args">The Args</param>
 private void OnEndScene(EventArgs args)
 {
     try
     {
         if (Config.Draw.GetBool("DamageIndicator.Enabled"))
         {
             foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(20000)))
             {
                 Indicator.Unit = enemy;
                 Indicator.DrawDamage(Extensions.Player.GetTotalDamage(enemy), new Color(255, 170, 30, 200));
             }
         }
     }
     catch (Exception e)
     {
         Logging.AddEntry(LoggingEntryType.Error, "@Events.cs: Can't run OnEndScene - {0}", e);
         throw;
     }
 }