private static void Game_OnUpdate(EventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Mixed)
     {
         return;
     }
     if (BadaoPoppyHelper.UseQHarass())
     {
         var target = TargetSelector.GetTarget(BadaoMainVariables.Q.Range, TargetSelector.DamageType.Physical);
         if (target.BadaoIsValidTarget())
         {
             if (BadaoMainVariables.Q.Cast(target) == Spell.CastStates.SuccessfullyCasted)
             {
                 BadaoPoppyVariables.QCastTick = Environment.TickCount;
             }
         }
     }
 }
Esempio n. 2
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
     {
         return;
     }
     if (BadaoPoppyHelper.UseQHarass())
     {
         var target = TargetSelector.GetTarget(BadaoMainVariables.Q.Range, DamageType.Physical);
         if (target.BadaoIsValidTarget())
         {
             if (BadaoMainVariables.Q.Cast(target) == LeagueSharp.Common.Spell.CastStates.SuccessfullyCasted)
             {
                 BadaoPoppyVariables.QCastTick = Environment.TickCount;
             }
         }
     }
 }