Example #1
0
 private void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     try
     {
         if (sender.IsEnemy && args.DangerLevel == Interrupter2.DangerLevel.High &&
             UltimateManager.Interrupt(sender))
         {
             Utility.DelayAction.Add(DelayManager.Get("ultimate-interrupt-delay"), () => R.Cast(sender.Position));
         }
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
 }
Example #2
0
 private void OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     try
     {
         if (sender.IsEnemy && args.DangerLevel == Interrupter2.DangerLevel.High &&
             UltimateManager.Interrupt(sender) && sender.IsFacing(Player))
         {
             Casting.SkillShot(sender, R, R.GetHitChance("combo"));
         }
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
 }