Exemple #1
0
        private static void OnGameUpdate(EventArgs args)
        {
            if (Config.Item("debugOn").GetValue <MenuKeyBind>().Active) //fullDMG
            {
                foreach (var buf in MasterYi.player.Buffs)
                {
                    Console.WriteLine(buf.Name);
                }
            }
            if (Orbwalker.ActiveMode == OrbwalkerMode.Combo)
            {
                AIHeroClient target = TargetSelector.GetTarget(800);
                Orbwalker.ForceTarget = target;
                if (target != null)
                {
                    MasterYi.selectedTarget = target;
                }
                MasterYi.slayMaderDuker(target);
            }



            //anti buferino
            foreach (var buf in MasterYi.player.Buffs)
            {
                TargetedSkills.TargSkill skill = TargetedSkills.dagerousBuffs.FirstOrDefault(ob => ob.sName.ToLower() == buf.Name.ToLower());
                if (skill != null)
                {
                    // Console.WriteLine("Evade: " + buf.Name);
                    MasterYi.evadeBuff(buf, skill);
                }
                // if(buf.EndTime-Game.Time<0.2f)
            }
        }
Exemple #2
0
 public static void evadeBuff(BuffInstance buf, TargetedSkills.TargSkill skill)
 {
     if (Q.IsReady() && jumpEnesAround() != 0 && buf.EndTime - Game.Time < skill.delay / 1000)
     {
         //Console.WriteLine("evade buuf");
         useQonBest();
     }
     else if (W.IsReady() && (!Q.IsReady() || jumpEnesAround() != 0) && buf.EndTime - Game.Time < 0.4f)
     {
         Orbwalker.SetMovePauseTime(400);
         W.Cast();
     }
 }
Exemple #3
0
 public static void OnProcessSpell(AIBaseClient obj, AIBaseClientProcessSpellCastEventArgs arg)
 {
     if (obj.IsEnemy && obj is AIHeroClient)
     {
         //Game.Print("Casted: " + arg.SData.Name);
         if (arg.Target != null && arg.Target.NetworkId == MasterYi.player.NetworkId)
         {
             //Console.WriteLine(arg.SData.Name);
             if (obj is AIHeroClient)
             {
                 var hero = (AIHeroClient)obj;
                 //Game.Print("Has1: " + arg.SData.Name);
                 var spellSlot = (hero.GetSpellSlot(arg.SData.Name));
                 TargetedSkills.TargSkill skill = TargetedSkills.targetedSkillsAll.FirstOrDefault(ob => ob.sName == arg.SData.Name);
                 if (skill != null)
                 {
                     //Game.Print("Evade: " + arg.SData.Name);
                     MasterYi.evadeDamage(skill.useQ, skill.useW, arg, skill.delay);
                     return;
                 }
             }
         }
         if (arg.End.DistanceToPlayer() < arg.SData.CastRadius / 2)
         {
             var hero = (AIHeroClient)obj;
             //Game.Print("Has: " + arg.SData.Name);
             TargetedSkills.TargSkill skill = TargetedSkills.targetedSkillsAll.FirstOrDefault(ob => ob.sName == arg.SData.Name);
             if (skill != null)
             {
                 //Game.Print("Evade: " + arg.SData.Name);
                 MasterYi.evadeDamage(skill.useQ, skill.useW, arg, skill.delay);
                 return;
             }
         }
     }
 }