예제 #1
0
        private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            var tower  = sender as Obj_AI_Turret;
            var target = args.Target as Obj_AI_Base;

            if (tower != null && target != null && target.IsAlly)
            {
                var a = new TurretAA(target);
                TurretAAs.Add(a);
                EloBuddy.SDK.Core.DelayAction(() => TurretAAs.Remove(a), 100);
            }
        }
예제 #2
0
 private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     var tower = sender as Obj_AI_Turret;
     var target = args.Target as Obj_AI_Base;
     if (tower != null && target != null && target.IsAlly)
     {
         var a = new TurretAA(target);
         TurretAAs.Add(a);
         EloBuddy.SDK.Core.DelayAction(() => TurretAAs.Remove(a), 100);
     }
 }