Esempio n. 1
0
        private static void Windwall(Skillshot skillshot)
        {
            if (YasuoSpells.W.IsReady() && skillshot.SpellData.Type != SkillShotType.SkillshotCircle ||
                skillshot.SpellData.Type != SkillShotType.SkillshotRing)
            {
                var isAboutToHitRange = Yasuo.Menu.GetValue <Slider>(YasuoMenu.AutoWindWallDelayLoc).Value;

                // => If anything, execute the windwall.
                var flag =
                    Yasuo.MenuWallsList.Where(ss => ss.SpellName == skillshot.SpellData.SpellName)
                    .Select(
                        ss =>
                        Yasuo.Menu.GetValue <bool>(
                            ((ss.IsWindwall) ? YasuoMenu.AutoWindWallLoc : YasuoMenu.EvadeLoc) + "." +
                            ss.ChampionName + "." + ss.Slot))
                    .FirstOrDefault();

                if (flag)
                {
                    if (skillshot.IsAboutToHit(isAboutToHitRange, Yasuo.Player))
                    {
                        var cast = Yasuo.Player.ServerPosition +
                                   Vector3.Normalize(skillshot.MissilePosition.To3D() - Yasuo.Player.ServerPosition) *
                                   10;
                        YasuoSpells.W.Cast(cast, Yasuo.Menu.GetValue <bool>(YasuoMenu.MiscPacketsName));
                    }
                }
            }
        }
Esempio n. 2
0
        public static void useWSmart(Skillshot skillShot)
        {
            //try doge with E if cant windWall
            var delay = MenuManager.DogeMenu["smartWD"].Cast<Slider>().CurrentValue;
            if (skillShot.IsAboutToHit(delay, Variables._Player))
            {
                if (!Program.W.IsReady() || skillShot.SpellData.Type == SkillShotType.SkillshotRing)
                    return;

                var sd = SpellDatabase.GetByMissileName(skillShot.SpellData.MissileSpellName);
                if (sd == null)
                    return;

                //If enabled
                if (!Variables.EvadeSpellEnabled(sd.MenuItemName))
                    return;

                //if only dangerous
                if (MenuManager.DogeMenu["wwDanger"].Cast<CheckBox>().CurrentValue &&
                    !Variables.skillShotIsDangerous(sd.MenuItemName))
                    return;

                Variables._Player.Spellbook.CastSpell(SpellSlot.W, skillShot.Start.To3D(), skillShot.End.To3D());
            }
        }
Esempio n. 3
0
        public static void useWSmart(Skillshot skillShot)
        {
            //try doge with E if cant windWall
            var delay = MenuManager.DogeMenu["smartWD"].Cast <Slider>().CurrentValue;

            if (skillShot.IsAboutToHit(delay, Variables._Player))
            {
                if (!Program.W.IsReady() || skillShot.SpellData.Type == SkillShotType.SkillshotRing)
                {
                    return;
                }

                var sd = SpellDatabase.GetByMissileName(skillShot.SpellData.MissileSpellName);
                if (sd == null)
                {
                    return;
                }

                //If enabled
                if (!Variables.EvadeSpellEnabled(sd.MenuItemName))
                {
                    return;
                }

                //if only dangerous
                if (MenuManager.DogeMenu["wwDanger"].Cast <CheckBox>().CurrentValue&&
                    !Variables.skillShotIsDangerous(sd.MenuItemName))
                {
                    return;
                }

                Variables._Player.Spellbook.CastSpell(SpellSlot.W, skillShot.Start.To3D(), skillShot.End.To3D());
            }
        }
Esempio n. 4
0
File: Yasuo.cs Progetto: betw01/detu
        public static void useWSmart(Skillshot skillShot)
        {
            //try douge with E if cant windWall

            if (!W.IsReady())
            {
                return;
            }
            if (skillShot.IsAboutToHit(250, Player))
            {
                var sd = SpellDatabase.GetByMissileName(skillShot.SpellData.MissileSpellName);
                if (sd == null)
                {
                    return;
                }

                //If enabled
                if (!YasuoSharp.EvadeSpellEnabled(sd.MenuItemName))
                {
                    return;
                }

                //if only dangerous
                if (YasuoSharp.Config.Item("wwDanger").GetValue <bool>() &&
                    !YasuoSharp.skillShotIsDangerous(sd.MenuItemName))
                {
                    return;
                }

                //Console.WriteLine("dmg: " + missle.SpellCaster.GetSpellDamage(Player, sd.SpellName));
                float spellDamage = (float)skillShot.Unit.GetSpellDamage(Player, sd.SpellName);
                int   procHp      = (int)((spellDamage / Player.MaxHealth) * 100);

                if (procHp < YasuoSharp.Config.Item("wwDmg").GetValue <Slider>().Value&& Player.Health - spellDamage > 0)
                {
                    return;
                }


                Vector3 blockwhere = Player.ServerPosition + Vector3.Normalize(skillShot.MissilePosition.To3D() - Player.ServerPosition) * 10; // missle.Position;
                W.Cast(blockwhere);
            }
        }
        private void Windwall(Skillshot skillshot)
        {
            if (!GetValue <bool>("autoww"))
            {
                return;
            }

            if (W.IsReady() && skillshot != null)
            {
                var isAboutToHitRange = GetValue <Slider>("wwdelay").Value;
                var flag =
                    MenuWallsList.Where(ss => ss.SpellName == skillshot.SpellData.SpellName)
                    .Select(ss => GetValue <bool>("autoww" + "." + ss.ChampionName + "." + ss.Slot))
                    .FirstOrDefault();
                if (flag)
                {
                    if (skillshot.Target != null && skillshot.Target.IsMe)
                    {
                        /*if (!skillshot.IsAboutToHit(700, Player))
                         * {
                         *  return;
                         * }*/
                        W.Cast(skillshot.Start);
                    }
                    else
                    {
                        if (!skillshot.IsAboutToHit(isAboutToHitRange, Player))
                        {
                            return;
                        }
                        var cast = Player.ServerPosition +
                                   Vector3.Normalize(skillshot.MissilePosition.To3D() - Player.ServerPosition) * 10;
                        W.Cast(skillshot.MissilePosition.To3D());
                    }
                }
            }
        }