Ejemplo n.º 1
0
        private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
        {
            try
            {
                if (args.Buff == null)
                {
                    return;
                }

                switch (args.Buff.Name.ToLower())
                {
                case "yasuoe":
                    if (args.Buff.Caster != null && args.Buff.Caster.IsMe)
                    {
                        YasuolastETime = Variables.GameTimeTickCount;
                        isYasuoDashing = true;
                        DelayAction.Add(500 + (Game.Ping / 2), () => { isYasuoDashing = false; });
                    }
                    break;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in MyEventManager.OnBuffGain." + ex);
            }
        }
Ejemplo n.º 2
0
 private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.IsMe)
     {
         AAPassive = Player.HasBuff("LucianPassiveBuff");
     }
 }
Ejemplo n.º 3
0
 private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.IsEnemy && (args.Buff.Type == BuffType.Sleep || args.Buff.Type == BuffType.Snare || args.Buff.Type == BuffType.Stun) && misc.check("PS") && !sender.HasBuff(EnemyPassiveProced) && sender.DistanceToPlayer() < 600)
     {
         Orbwalker.Attack(sender);
     }
 }
Ejemplo n.º 4
0
 private void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.IsMe)
     {
         Game.Print(args.Buff.Name);
     }
 }
Ejemplo n.º 5
0
            public static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
            {
                if (sender.IsMe || sender.IsAlly || objPlayer.IsDead)
                {
                    return;
                }

                if (MenuManager.MiscMenu["AutoR"].GetValue <MenuBool>().Enabled&& MenuManager.MiscMenu["AutoRZhonya"].GetValue <MenuBool>().Enabled)
                {
                    BuffInstance buff = (from senderBuffs in sender.Buffs.Where(x => sender.DistanceToPlayer() < SpellManager.R.Range)
                                         from b in new[]
                    {
                        "teleport",
                        "zhonya",
                        "katarinar",
                        "crowstorm",
                        "MissFortuneBulletTime",
                        "gate",
                        "chronorevive",
                    }
                                         where args.Buff.Name.ToLower().Contains(b) select senderBuffs).FirstOrDefault();


                    if (buff != null && SpellManager.R.IsReady())
                    {
                        SpellManager.R.Cast(sender.Position);
                    }
                }
            }
Ejemplo n.º 6
0
 private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args8)
 {
     if (check(combo, "CEONLY") && sender.IsEnemy && !sender.IsMinion && args8.Buff.Name == QTargetBuffName)
     {
         E.Cast();
     }
 }
Ejemplo n.º 7
0
 private void AIBaseClientBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (args.Buff.Name == "VarusQLaunch" && (new[] { OrbwalkerMode.Combo, OrbwalkerMode.Harass }).Contains(Orbwalker.ActiveMode))
     {
         //ChargingStart = LastCastPacketSentEntry.Tick;
         ChargingStart = Game.Time;
         spells[Spells.W].Cast();
     }
 }
Ejemplo n.º 8
0
 private void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.IsEnemy && sender is AIHeroClient)
     {
         if (MiscECC.Enabled && e.IsReady() && sender.IsValidTarget(e.Range) && CCList.Contains(args.Buff.Type))
         {
             e.Cast(sender);
         }
     }
 }
Ejemplo n.º 9
0
 /// <summary>
 ///     OnBuffAdd event.
 /// </summary>
 /// <param name="sender">
 ///     The sender
 /// </param>
 /// <param name="args">
 ///     The event data
 /// </param>
 private void AIBaseClientOnOnBuffAdd(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (!sender.IsMe)
     {
         return;
     }
     if (args.Buff.Name == "sonapassiveattack")
     {
         this.ResetSwingTimer();
     }
 }
 /// <summary>
 /// OnBuffAdd Event
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The args.</param>
 private static void AIBaseClient_OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.Type == GameObjectType.AIHeroClient && sender.IsValid && sender.IsEnemy)
     {
         var stasis = s_StasisBuffs.FirstOrDefault(p => args.Buff.Name.Contains(p.Item1));
         if (stasis != null)
         {
             s_DetectedStasises.Add(new Stasis {
                 Unit = sender, StartTick = Variables.TickCount, Duration = stasis.Item2, Name = stasis.Item1, Processed = false
             });
         }
     }
 }
Ejemplo n.º 11
0
 private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (sender.IsMe && args.Buff.Caster.IsEnemy && !config["Cleaners"]["DontUse"].GetValue <MenuBool>(((AIBaseClient)args.Buff.Caster).CharacterName))
     {
         foreach (int id in CleanSelfItemIds)
         {
             if (id != (int)ItemId.Mikaels_Crucible)
             {
                 CheckAndClean(id);
             }
             else
             {
                 CheckAndClean(id, GameObjects.AllyHeroes.Where(h => h.IsValidTarget(600) && HasDebuff(h)).FirstOrDefault());
             }
         }
     }
 }
Ejemplo n.º 12
0
 private static void OnBuffGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
 {
     if (!sender.IsMe)
     {
         return;
     }
     if (args.Buff.Type == BuffType.Taunt ||
         args.Buff.Type == BuffType.Stun ||
         args.Buff.Type == BuffType.Snare ||
         args.Buff.Type == BuffType.Polymorph ||
         args.Buff.Type == BuffType.Blind ||
         args.Buff.Type == BuffType.Flee ||
         args.Buff.Type == BuffType.Charm ||
         args.Buff.Type == BuffType.Suppression ||
         args.Buff.Type == BuffType.Silence)
     {
         DoQss();
     }
 }