/// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     try
     {
         return(entry != null && entry.CheckFunction(hero, damageType));
     }
     catch (Exception ex)
     {
         LogManager.GetCurrentClassLogger().Error(ex);
     }
     return(false);
 }
Пример #2
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, AIHeroClient hero, DamageType damageType)
 {
     try
     {
         return entry != null && entry.CheckFunction(hero, damageType);
     }
     catch (Exception ex)
     {
         //LogManager.GetCurrentClassLogger().Error(ex);
     }
     return false;
 }
Пример #3
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     try
     {
         return(entry != null && entry.CheckFunction(hero, damageType));
     }
     catch (Exception ex)
     {
         Logging.Write()(LogLevel.Error, ex);
     }
     return(false);
 }
Пример #4
0
 /// <summary>
 ///     Executes the check function.
 /// </summary>
 /// <param name="entry">The entry.</param>
 /// <param name="hero">The target.</param>
 /// <param name="damageType">Type of the damage.</param>
 /// <returns></returns>
 private static bool ExecuteCheckFunction(InvulnerableEntry entry, Obj_AI_Hero hero, DamageType damageType)
 {
     try
     {
         return entry != null && entry.CheckFunction(hero, damageType);
     }
     catch (Exception ex)
     {
         LogManager.GetCurrentClassLogger().Error(ex);
     }
     return false;
 }