Beispiel #1
0
 /// <summary>
 ///     Executes logic given the specified target.
 /// </summary>
 /// <param name="target">The target.</param>
 public void Execute(Obj_AI_Base target)
 {
     try
     {
         if (Variables.E.IsReady() && MenuGenerator.EMenu["useecombo"].Cast <CheckBox>().CurrentValue)
         {
             var CondemnTarget = CondemnLogicProvider.GetCondemnableTarget();
             if (target != null)
             {
                 Variables.E.Cast(CondemnTarget);
             }
         }
     }
     catch (Exception e)
     {
     }
 }
Beispiel #2
0
 /// <summary>
 ///     Called when the modules gets executed.
 /// </summary>
 public void OnExecute()
 {
     foreach (var target in EntityManager.Heroes.Enemies.Where(h => h.IsValidTarget(Variables.E.Range) && CondemnLogicProvider.IsCondemnable(h)))
     {
         Variables.E.Cast(target);
     }
 }