Example #1
0
 private static void OnInterruptableTarget(object sender, LeagueSharp.SDK.Events.InterruptableTargetEventArgs args)
 {
     if (IM_E_Q && (MyHero.Mana > Q.Instance.ManaCost + E.Instance.ManaCost))
     {
         if (args.Sender.IsValidTarget(E.Range) && (args.Sender.HasBuff("brandablaze") || E.IsReady()))
         {
             E.Cast(args.Sender);
             if (Q.IsReady())
             {
                 Q.Cast(args.Sender);
             }
         }
     }
 }
Example #2
0
 /// <summary>
 /// The interrupter.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private static void Interrupter(object sender, LeagueSharp.SDK.Events.InterruptableTargetEventArgs args)
 {
     if (AGCM.Value)
     {
         if (RangeForm())
         {
             if (R.IsReady() && (HammerQ_CD_R == 0))
             {
                 R.Cast();
             }
         }
         else
         {
             if (args.Sender.IsValidTarget(E1.Range) && E1.IsReady())
             {
                 E.Cast(args.Sender);
             }
         }
     }
 }