Exemplo n.º 1
0
        static EvadeSpellDatabase()
        {
            //Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

                #region Sivir
                if (ObjectManager.Player.BaseSkinName == "Sivir")
                {
                    spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true);
                    Spells.Add(spell);
                }
                #endregion
                #region Nocturne
                if (ObjectManager.Player.BaseSkinName == "Nocturne")
                {
                    spell = new ShieldData("Nocturne E", SpellSlot.E, 100, 1, true);
                    Spells.Add(spell);
                }
                #endregion

            #endregion

            //Walking.
            spell = new EvadeSpellData("Walking", 1);
            Spells.Add(spell);

            #region Champion Dashes

                #region Caitlyn
                if (ObjectManager.Player.BaseSkinName == "Caitlyn")
                {
                    spell = new DashData("Caitlyn E", SpellSlot.E, 490, true, 250, 1000, 3);
                    spell.Invert = true;
                    Spells.Add(spell);
                }
                #endregion
                #region Gragas
                if (ObjectManager.Player.BaseSkinName == "Gragas")
                {
                    spell = new DashData("Gragas E", SpellSlot.E, 600, false, 250, 911, 3);
                    Spells.Add(spell);
                }
                #endregion
                #region Nidalee
                if (ObjectManager.Player.BaseSkinName == "Nidalee")
                {
                    spell = new DashData("Nidalee W", SpellSlot.W, 375, true, 250, 943, 3);
                    spell.CheckSpellName = "Pounce";
                    Spells.Add(spell);
                }
                #endregion
                #region Riven
                if (ObjectManager.Player.BaseSkinName == "Riven")
                {
                    spell = new DashData("Riven Q", SpellSlot.Q, 222, true, 250, 560, 3);
                    spell.RequiresPreMove = true;
                    Spells.Add(spell);

                    spell = new DashData("Riven E", SpellSlot.E, 250, false, 250, 1200, 3);
                    Spells.Add(spell);
                }
                #endregion
                #region Tristana
                if (ObjectManager.Player.BaseSkinName == "Tristana")
                {
                    spell = new DashData("Tristana W", SpellSlot.W, 900, true, 300, 800, 5);
                    Spells.Add(spell);
                }
                #endregion
                #region Tryndamare
                if (ObjectManager.Player.BaseSkinName == "Tryndamere")
                {
                    spell = new DashData("Tryndamere E", SpellSlot.E, 650, true, 250, 900, 3);
                    Spells.Add(spell);
                }
                #endregion
                #region Vayne
                if (ObjectManager.Player.BaseSkinName == "Vayne")
                {
                    spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 250, 900, 2);
                    Spells.Add(spell);
                }
                #endregion

            #endregion

            #region Champion Blinks

                #region Ezreal
                if (ObjectManager.Player.BaseSkinName == "Ezreal")
                {
                    spell = new BlinkData("Ezreal E", SpellSlot.E, 450, 250, 3);
                    Spells.Add(spell);
                }
                #endregion
                #region Kassadin
                if (ObjectManager.Player.BaseSkinName == "Kassadin")
                {
                    spell = new BlinkData("Kassadin R", SpellSlot.R, 700, 200, 5);
                    Spells.Add(spell);
                }
                #endregion
                #region Katarina
                if (ObjectManager.Player.BaseSkinName == "Katarina")
                {
                    spell = new BlinkData("Katarina E", SpellSlot.E, 700, 100, 3);
                    spell.ValidTargets = new [] { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards, };
                    Spells.Add(spell);
                }
                #endregion
                #region Shaco
                if (ObjectManager.Player.BaseSkinName == "Shaco")
                {
                    spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 250, 3);
                    Spells.Add(spell);
                }
                #endregion

            #endregion

            #region Champion Invulnerabilities

                #region Elise
                if (ObjectManager.Player.BaseSkinName == "Elise")
                {
                    spell = new InvulnerabilityData("Elise E", SpellSlot.E, 250, 3);
                    spell.CheckSpellName = "EliseSpiderEInitial";
                    spell.SelfCast = true;
                    Spells.Add(spell);
                }
                #endregion
                #region Fizz
                if (ObjectManager.Player.BaseSkinName == "Fizz")
                {
                    spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 250, 3);
                    Spells.Add(spell);
                }
                #endregion
                #region MasterYi
                if (ObjectManager.Player.BaseSkinName == "MasterYi")
                {
                    spell = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 250, 3);
                    spell.MaxRange = 600;
                    spell.ValidTargets = new[] {SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions};
                    Spells.Add(spell);
                }
                #endregion

            #endregion

            //Flash
            if (ObjectManager.Player.GetSpellSlot("SummonerFlash") != SpellSlot.Unknown)
            {
                spell = new BlinkData("Flash", ObjectManager.Player.GetSpellSlot("SummonerFlash"), 400, 100, 5, true);
                Spells.Add(spell);
            }

            //Zhonyas
            spell = new EvadeSpellData("Zhonyas", 5);
            Spells.Add(spell);

            #region Champion Shields
                #region Janna
                if (ObjectManager.Player.BaseSkinName == "Janna")
                {
                    spell = new ShieldData("Janna E", SpellSlot.E, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = 800;
                    Spells.Add(spell);
                }
                #endregion
                #region Lulu
                if (ObjectManager.Player.BaseSkinName == "Lulu")
                {
                    spell = new ShieldData("Lulu E", SpellSlot.E, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Karma
                if (ObjectManager.Player.BaseSkinName == "Karma")
                {
                    spell = new ShieldData("Karma E", SpellSlot.E, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region LeeSin
                if (ObjectManager.Player.BaseSkinName == "LeeSin")
                {
                    spell = new ShieldData("LeeSin W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Orianna
                if (ObjectManager.Player.BaseSkinName == "Orianna")
                {
                    spell = new ShieldData("Orianna E", SpellSlot.E, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Karma
                if (ObjectManager.Player.BaseSkinName == "Karma")
                {
                    spell = new ShieldData("Karma E", SpellSlot.E, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Shen
                if (ObjectManager.Player.BaseSkinName == "Shen")
                {
                    spell = new ShieldData("Shen W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                {
                    spell = new ShieldData("Shen R", SpellSlot.R, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Rumble
                if (ObjectManager.Player.BaseSkinName == "Rumble")
                {
                    spell = new ShieldData("Rumble W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Nautilus
                if (ObjectManager.Player.BaseSkinName == "Nautilus")
                {
                    spell = new ShieldData("Nautilus W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Sion
                if (ObjectManager.Player.BaseSkinName == "Sion")
                {
                    spell = new ShieldData("Sion W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region JarvanIV
                if (ObjectManager.Player.BaseSkinName == "JarvanIV")
                {
                    spell = new ShieldData("JarvanIV W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Skarner
                if (ObjectManager.Player.BaseSkinName == "Skarner")
                {
                    spell = new ShieldData("Skarner W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Urgot
                if (ObjectManager.Player.BaseSkinName == "Urgot")
                {
                    spell = new ShieldData("Urgot W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Diana
                if (ObjectManager.Player.BaseSkinName == "Diana")
                {
                    spell = new ShieldData("Diana W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Udyr
                if (ObjectManager.Player.BaseSkinName == "Udyr")
                {
                    spell = new ShieldData("Udyr W", SpellSlot.W, 100, 1);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Kayle
                if (ObjectManager.Player.BaseSkinName == "Kayle")
                {
                    spell = new ShieldData("Kayle R", SpellSlot.R, 100, 1);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Morgana
                if (ObjectManager.Player.BaseSkinName == "Morgana")
                {
                    spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = 750;
                    Spells.Add(spell);
                }
                #endregion

                //  Wasn't sure how to handle these two special cases, but I think they will work as I have them set up.
                #region Zilean
                if (ObjectManager.Player.BaseSkinName == "Zilean")
                {
                    spell = new ShieldData("Zilean R", SpellSlot.R, 100, 5);
                    spell.CanShieldAllies = true;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion
                #region Tryndamere
                if (ObjectManager.Player.BaseSkinName == "Tryndamere")
                {
                    spell = new ShieldData("Tryndamere W", SpellSlot.R, 100, 5);
                    spell.CanShieldAllies = false;
                    spell.MaxRange = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRangeDisplayOverride[0];
                    Spells.Add(spell);
                }
                #endregion

            #endregion
        }
Exemplo n.º 2
0
        static EvadeSpellDatabase()
        {
            //Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

            #region Sivir

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #region Nocturne

            if (ObjectManager.Player.ChampionName == "Nocturne")
            {
                spell = new ShieldData("Nocturne E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Walking.
            spell = new EvadeSpellData("Walking", 1);
            Spells.Add(spell);

            #region Champion MoveSpeed buffs

            #region Blitzcrank

            if (ObjectManager.Player.ChampionName == "Blitzcrank")
            {
                spell = new MoveBuffData(
                    "Blitzcrank W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.12f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Draven

            if (ObjectManager.Player.ChampionName == "Draven")
            {
                spell = new MoveBuffData(
                    "Draven W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Evelynn

            if (ObjectManager.Player.ChampionName == "Evelynn")
            {
                spell = new MoveBuffData(
                    "Evelynn W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.2f + 0.1f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Garen

            if (ObjectManager.Player.ChampionName == "Garen")
            {
                spell = new MoveBuffData("Garen Q", SpellSlot.Q, 100, 3, () => ObjectManager.Player.MoveSpeed * (1.35f));
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new MoveBuffData(
                    "Katarina W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Get <Obj_AI_Hero>().Any(h => h.IsValidTarget(375))
                            ? ObjectManager.Player.MoveSpeed *
                    (1 + 0.10f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)
                            : 0);
                Spells.Add(spell);
            }

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new MoveBuffData(
                    "Karma E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Kennen

            if (ObjectManager.Player.ChampionName == "Kennen")
            {
                spell = new MoveBuffData("Kennen E", SpellSlot.E, 100, 3, () => 200 + ObjectManager.Player.MoveSpeed);
                //Actually it should be +335 but ingame you only gain +230, rito plz
                Spells.Add(spell);
            }

            #endregion

            #region Khazix

            if (ObjectManager.Player.ChampionName == "Khazix")
            {
                spell = new MoveBuffData("Khazix R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * 1.4f);
                Spells.Add(spell);
            }

            #endregion

            #region Lulu

            if (ObjectManager.Player.ChampionName == "Lulu")
            {
                spell = new MoveBuffData(
                    "Lulu W", SpellSlot.W, 100, 5,
                    () => ObjectManager.Player.MoveSpeed * (1.3f + ObjectManager.Player.FlatMagicDamageMod / 100 * 0.1f));
                Spells.Add(spell);
            }

            #endregion

            #region Nunu

            if (ObjectManager.Player.ChampionName == "Nunu")
            {
                spell = new MoveBuffData(
                    "Nunu W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.1f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Ryze

            if (ObjectManager.Player.ChampionName == "Ryze")
            {
                spell = new MoveBuffData("Ryze R", SpellSlot.R, 100, 5, () => 80 + ObjectManager.Player.MoveSpeed);
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new MoveBuffData("Sivir R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * (1.6f));
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Shyvana")
            {
                spell = new MoveBuffData(
                    "Shyvana W", SpellSlot.W, 100, 4,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.25f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                spell.CheckSpellName = "ShyvanaImmolationAura";
                Spells.Add(spell);
            }

            #endregion

            #region Sona

            if (ObjectManager.Player.ChampionName == "Sona")
            {
                spell = new MoveBuffData(
                    "Sona E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.12f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level +
                     ObjectManager.Player.FlatMagicDamageMod / 100 * 0.075f +
                     0.02f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Teemo ^_^

            if (ObjectManager.Player.ChampionName == "Teemo")
            {
                spell = new MoveBuffData(
                    "Teemo W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.06f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Udyr

            if (ObjectManager.Player.ChampionName == "Udyr")
            {
                spell = new MoveBuffData(
                    "Udyr E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.1f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Zilean

            if (ObjectManager.Player.ChampionName == "Zilean")
            {
                spell = new MoveBuffData("Zilean E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * 1.55f);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Dashes

            #region Aatrox

            if (ObjectManager.Player.ChampionName == "Aatrox")
            {
                spell        = new DashData("Aatrox Q", SpellSlot.Q, 650, false, 400, 3000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Akali

            if (ObjectManager.Player.ChampionName == "Akali")
            {
                spell = new DashData("Akali R", SpellSlot.R, 800, false, 100, 2461, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Alistar

            if (ObjectManager.Player.ChampionName == "Alistar")
            {
                spell = new DashData("Alistar W", SpellSlot.W, 650, false, 100, 1900, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Caitlyn

            if (ObjectManager.Player.ChampionName == "Caitlyn")
            {
                spell        = new DashData("Caitlyn E", SpellSlot.E, 490, true, 250, 1000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Corki

            if (ObjectManager.Player.ChampionName == "Corki")
            {
                spell = new DashData("Corki W", SpellSlot.W, 790, false, 250, 1044, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new DashData("Fizz Q", SpellSlot.Q, 550, true, 100, 1400, 4);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyChampions };
                Spells.Add(spell);
            }

            #endregion

            #region Gragas

            if (ObjectManager.Player.ChampionName == "Gragas")
            {
                spell = new DashData("Gragas E", SpellSlot.E, 600, true, 250, 911, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Gnar

            if (ObjectManager.Player.ChampionName == "Gnar")
            {
                spell = new DashData("Gnar E", SpellSlot.E, 50, false, 0, 900, 3);
                spell.CheckSpellName = "GnarE";
                Spells.Add(spell);
            }

            #endregion

            #region Graves

            if (ObjectManager.Player.ChampionName == "Graves")
            {
                spell = new DashData("Graves E", SpellSlot.E, 425, true, 100, 1223, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Irelia

            if (ObjectManager.Player.ChampionName == "Irelia")
            {
                spell = new DashData("Irelia Q", SpellSlot.Q, 650, false, 100, 2200, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Jax

            if (ObjectManager.Player.ChampionName == "Jax")
            {
                spell = new DashData("Jax Q", SpellSlot.Q, 700, false, 100, 1400, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.EnemyWards, SpellValidTargets.AllyWards, SpellValidTargets.AllyMinions,
                    SpellValidTargets.AllyChampions, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions
                };
                Spells.Add(spell);
            }

            #endregion

            #region LeBlanc

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("LeBlanc W1", SpellSlot.W, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlide";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("LeBlanc RW", SpellSlot.R, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlideM";
                Spells.Add(spell);
            }

            #endregion

            #region LeeSin

            if (ObjectManager.Player.ChampionName == "LeeSin")
            {
                spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 250, 2000, 3);
                spell.ValidTargets = new[]
                { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards };
                spell.CheckSpellName = "BlindMonkWOne";
                Spells.Add(spell);
            }

            #endregion

            #region Lucian

            if (ObjectManager.Player.ChampionName == "Lucian")
            {
                spell = new DashData("Lucian E", SpellSlot.E, 425, false, 100, 1350, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Nidalee

            if (ObjectManager.Player.ChampionName == "Nidalee")
            {
                spell = new DashData("Nidalee W", SpellSlot.W, 375, true, 250, 943, 3);
                spell.CheckSpellName = "Pounce";
                Spells.Add(spell);
            }

            #endregion

            #region Pantheon

            if (ObjectManager.Player.ChampionName == "Pantheon")
            {
                spell = new DashData("Pantheon W", SpellSlot.W, 600, false, 100, 1000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Riven

            if (ObjectManager.Player.ChampionName == "Riven")
            {
                spell = new DashData("Riven Q", SpellSlot.Q, 222, true, 250, 560, 3);
                spell.RequiresPreMove = true;
                Spells.Add(spell);

                spell = new DashData("Riven E", SpellSlot.E, 250, false, 250, 1200, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Tristana

            if (ObjectManager.Player.ChampionName == "Tristana")
            {
                spell = new DashData("Tristana W", SpellSlot.W, 900, true, 300, 800, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Tryndamare

            if (ObjectManager.Player.ChampionName == "Tryndamere")
            {
                spell = new DashData("Tryndamere E", SpellSlot.E, 650, true, 250, 900, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Vayne

            if (ObjectManager.Player.ChampionName == "Vayne")
            {
                spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 100, 910, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Wukong

            if (ObjectManager.Player.ChampionName == "MonkeyKing")
            {
                spell = new DashData("Wukong E", SpellSlot.E, 650, false, 100, 1400, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Blinks

            #region Ezreal

            if (ObjectManager.Player.ChampionName == "Ezreal")
            {
                spell = new BlinkData("Ezreal E", SpellSlot.E, 450, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Kassadin

            if (ObjectManager.Player.ChampionName == "Kassadin")
            {
                spell = new BlinkData("Kassadin R", SpellSlot.R, 700, 200, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new BlinkData("Katarina E", SpellSlot.E, 700, 200, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards
                };
                Spells.Add(spell);
            }

            #endregion

            #region Shaco

            if (ObjectManager.Player.ChampionName == "Shaco")
            {
                spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Talon

            if (ObjectManager.Player.ChampionName == "Talon")
            {
                spell = new BlinkData("Talon E", SpellSlot.E, 700, 100, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Invulnerabilities

            #region Elise

            if (ObjectManager.Player.ChampionName == "Elise")
            {
                spell = new InvulnerabilityData("Elise E", SpellSlot.E, 250, 3);
                spell.CheckSpellName = "EliseSpiderEInitial";
                spell.SelfCast       = true;
                Spells.Add(spell);
            }

            #endregion

            #region Vladimir

            if (ObjectManager.Player.ChampionName == "Vladimir")
            {
                spell          = new InvulnerabilityData("Vladimir W", SpellSlot.W, 250, 3);
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 250, 3);
                Spells.Add(spell);
            }

            #endregion

            #region MasterYi

            if (ObjectManager.Player.ChampionName == "MasterYi")
            {
                spell              = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 250, 3);
                spell.MaxRange     = 600;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Flash
            if (ObjectManager.Player.GetSpellSlot("SummonerFlash") != SpellSlot.Unknown)
            {
                spell = new BlinkData("Flash", ObjectManager.Player.GetSpellSlot("SummonerFlash"), 400, 100, 5, true);
                Spells.Add(spell);
            }

            //Zhonyas
            spell = new EvadeSpellData("Zhonyas", 5);
            Spells.Add(spell);

            #region Champion Shields

            #region Akali

            #endregion

            #region Annie

            #endregion

            #region Diana

            #endregion

            #region Galio

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new ShieldData("Karma E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Janna

            if (ObjectManager.Player.ChampionName == "Janna")
            {
                spell = new ShieldData("Janna E", SpellSlot.E, 100, 1);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Morgana

            if (ObjectManager.Player.ChampionName == "Morgana")
            {
                spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 750;
                Spells.Add(spell);
            }

            #endregion

            #endregion
        }
Exemplo n.º 3
0
        static EvadeSpellDatabase()
        {
            //Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

            #region Sivir

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #region Nocturne

            if (ObjectManager.Player.ChampionName == "Nocturne")
            {
                spell = new ShieldData("Nocturne W", SpellSlot.W, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Walking.
            spell = new EvadeSpellData("Walking", 1);
            Spells.Add(spell);

            #region Champion MoveSpeed buffs

            #region Blitzcrank

            if (ObjectManager.Player.ChampionName == "Blitzcrank")
            {
                spell = new MoveBuffData(
                    "Blitzcrank W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.12f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Draven

            if (ObjectManager.Player.ChampionName == "Draven")
            {
                spell = new MoveBuffData(
                    "Draven W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Evelynn

            if (ObjectManager.Player.ChampionName == "Evelynn")
            {
                spell = new MoveBuffData(
                    "Evelynn W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.2f + 0.1f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Garen

            if (ObjectManager.Player.ChampionName == "Garen")
            {
                spell = new MoveBuffData("Garen Q", SpellSlot.Q, 100, 3, () => ObjectManager.Player.MoveSpeed * 1.35f);
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new MoveBuffData(
                    "Katarina W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Get<AIHeroClient>().Any(h => h.IsValidTarget(375))
                            ? ObjectManager.Player.MoveSpeed *
                              (1 + 0.10f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)
                            : 0);
                Spells.Add(spell);
            }

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new MoveBuffData(
                    "Karma E", SpellSlot.E, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Kennen

            if (ObjectManager.Player.ChampionName == "Kennen")
            {
                spell = new MoveBuffData("Kennen E", SpellSlot.E, 100, 3, () => 200 + ObjectManager.Player.MoveSpeed);
                //Actually it should be +335 but ingame you only gain +230, rito plz
                Spells.Add(spell);
            }

            #endregion

            #region Khazix

            if (ObjectManager.Player.ChampionName == "Khazix")
            {
                spell = new MoveBuffData("Khazix R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * 1.4f);
                Spells.Add(spell);
            }

            #endregion

            #region Lulu

            if (ObjectManager.Player.ChampionName == "Lulu")
            {
                spell = new MoveBuffData(
                    "Lulu W", SpellSlot.W, 100, 5,
                    () => ObjectManager.Player.MoveSpeed * (1.3f + ObjectManager.Player.FlatMagicDamageMod / 100 * 0.1f));
                Spells.Add(spell);
            }

            #endregion

            #region Nunu

            if (ObjectManager.Player.ChampionName == "Nunu")
            {
                spell = new MoveBuffData(
                    "Nunu W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.1f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Ryze

            if (ObjectManager.Player.ChampionName == "Ryze")
            {
                spell = new MoveBuffData("Ryze R", SpellSlot.R, 100, 5, () => 80 + ObjectManager.Player.MoveSpeed);
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new MoveBuffData("Sivir R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * 1.6f);
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Shyvana")
            {
                spell = new MoveBuffData(
                    "Shyvana W", SpellSlot.W, 100, 4,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.25f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                spell.CheckSpellName = "ShyvanaImmolationAura";
                Spells.Add(spell);
            }

            #endregion

            #region Sona

            if (ObjectManager.Player.ChampionName == "Sona")
            {
                spell = new MoveBuffData(
                    "Sona E", SpellSlot.E, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.12f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level +
                         ObjectManager.Player.FlatMagicDamageMod / 100 * 0.075f +
                         0.02f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Teemo ^_^

            if (ObjectManager.Player.ChampionName == "Teemo")
            {
                spell = new MoveBuffData(
                    "Teemo W", SpellSlot.W, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.06f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Udyr

            if (ObjectManager.Player.ChampionName == "Udyr")
            {
                spell = new MoveBuffData(
                    "Udyr E", SpellSlot.E, 100, 3,
                    () =>
                        ObjectManager.Player.MoveSpeed *
                        (1 + 0.1f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Zilean

            if (ObjectManager.Player.ChampionName == "Zilean")
            {
                spell = new MoveBuffData("Zilean E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * 1.55f);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Dashes

            #region Aatrox

            if (ObjectManager.Player.ChampionName == "Aatrox")
            {
                spell = new DashData("Aatrox Q", SpellSlot.Q, 650, false, 400, 3000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Akali

            if (ObjectManager.Player.ChampionName == "Akali")
            {
                spell = new DashData("Akali R", SpellSlot.R, 800, false, 100, 2461, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Alistar

            if (ObjectManager.Player.ChampionName == "Alistar")
            {
                spell = new DashData("Alistar W", SpellSlot.W, 650, false, 100, 1900, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Caitlyn

            if (ObjectManager.Player.ChampionName == "Caitlyn")
            {
                spell = new DashData("Caitlyn E", SpellSlot.E, 490, true, 250, 1000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Corki

            if (ObjectManager.Player.ChampionName == "Corki")
            {
                spell = new DashData("Corki W", SpellSlot.W, 790, false, 250, 1044, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new DashData("Fizz Q", SpellSlot.Q, 550, true, 100, 1400, 4);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyChampions };
                Spells.Add(spell);
            }

            #endregion

            #region Gragas

            if (ObjectManager.Player.ChampionName == "Gragas")
            {
                spell = new DashData("Gragas E", SpellSlot.E, 600, true, 250, 911, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Gnar

            if (ObjectManager.Player.ChampionName == "Gnar")
            {
                spell = new DashData("Gnar E", SpellSlot.E, 50, false, 0, 900, 3);
                spell.CheckSpellName = "GnarE";
                Spells.Add(spell);
            }

            #endregion

            #region Graves

            if (ObjectManager.Player.ChampionName == "Graves")
            {
                spell = new DashData("Graves E", SpellSlot.E, 425, true, 100, 1223, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Irelia

            if (ObjectManager.Player.ChampionName == "Irelia")
            {
                spell = new DashData("Irelia Q", SpellSlot.Q, 650, false, 100, 2200, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Jax

            if (ObjectManager.Player.ChampionName == "Jax")
            {
                spell = new DashData("Jax Q", SpellSlot.Q, 700, false, 100, 1400, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.EnemyWards, SpellValidTargets.AllyWards, SpellValidTargets.AllyMinions,
                    SpellValidTargets.AllyChampions, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions
                };
                Spells.Add(spell);
            }

            #endregion

            #region Leblanc

            if (ObjectManager.Player.ChampionName == "Leblanc")
            {
                spell = new DashData("LeBlanc W1", SpellSlot.W, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlide";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.ChampionName == "Leblanc")
            {
                spell = new DashData("LeBlanc RW", SpellSlot.R, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlideM";
                Spells.Add(spell);
            }

            #endregion

            #region LeeSin

            if (ObjectManager.Player.ChampionName == "LeeSin")
            {
                spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 250, 2000, 3);
                spell.ValidTargets = new[]
                {SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards};
                spell.CheckSpellName = "BlindMonkWOne";
                Spells.Add(spell);
            }

            #endregion

            #region Lucian

            if (ObjectManager.Player.ChampionName == "Lucian")
            {
                spell = new DashData("Lucian E", SpellSlot.E, 425, false, 100, 1350, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Nidalee

            if (ObjectManager.Player.ChampionName == "Nidalee")
            {
                spell = new DashData("Nidalee W", SpellSlot.W, 375, true, 250, 943, 3);
                spell.CheckSpellName = "Pounce";
                Spells.Add(spell);
            }

            #endregion

            #region Pantheon

            if (ObjectManager.Player.ChampionName == "Pantheon")
            {
                spell = new DashData("Pantheon W", SpellSlot.W, 600, false, 100, 1000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Riven

            if (ObjectManager.Player.ChampionName == "Riven")
            {
                spell = new DashData("Riven Q", SpellSlot.Q, 222, true, 250, 560, 3);
                spell.RequiresPreMove = true;
                Spells.Add(spell);

                spell = new DashData("Riven E", SpellSlot.E, 250, false, 250, 1200, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Tristana

            if (ObjectManager.Player.ChampionName == "Tristana")
            {
                spell = new DashData("Tristana W", SpellSlot.W, 900, true, 300, 800, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Tryndamare

            if (ObjectManager.Player.ChampionName == "Tryndamere")
            {
                spell = new DashData("Tryndamere E", SpellSlot.E, 650, true, 250, 900, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Vayne

            if (ObjectManager.Player.ChampionName == "Vayne")
            {
                spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 100, 910, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Wukong

            if (ObjectManager.Player.ChampionName == "MonkeyKing")
            {
                spell = new DashData("Wukong E", SpellSlot.E, 650, false, 100, 1400, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Yasuo

            if (ObjectManager.Player.ChampionName == "Yasuo")
            {
                spell = new DashData("Yasuo E", SpellSlot.E, 475, true, 50, 2000, 2); //550 cast range?
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Blinks

            #region Ezreal

            if (ObjectManager.Player.ChampionName == "Ezreal")
            {
                spell = new BlinkData("Ezreal E", SpellSlot.E, 450, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Kassadin

            if (ObjectManager.Player.ChampionName == "Kassadin")
            {
                spell = new BlinkData("Kassadin R", SpellSlot.R, 700, 200, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new BlinkData("Katarina E", SpellSlot.E, 700, 200, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards
                };
                Spells.Add(spell);
            }

            #endregion

            #region Shaco

            if (ObjectManager.Player.ChampionName == "Shaco")
            {
                spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Talon

            if (ObjectManager.Player.ChampionName == "Talon")
            {
                spell = new BlinkData("Talon E", SpellSlot.E, 700, 100, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Invulnerabilities

            #region Elise

            if (ObjectManager.Player.ChampionName == "Elise")
            {
                spell = new InvulnerabilityData("Elise E", SpellSlot.E, 250, 3);
                spell.CheckSpellName = "EliseSpiderEInitial";
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            #endregion

            #region Vladimir

            if (ObjectManager.Player.ChampionName == "Vladimir")
            {
                spell = new InvulnerabilityData("Vladimir W", SpellSlot.W, 250, 3);
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 250, 3);
                Spells.Add(spell);
            }

            #endregion

            #region MasterYi

            if (ObjectManager.Player.ChampionName == "MasterYi")
            {
                spell = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 250, 3);
                spell.MaxRange = 600;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Flash
            if (ObjectManager.Player.GetSpellSlotFromName("summonerflash") != SpellSlot.Unknown)
            {
                spell = new BlinkData("Flash", ObjectManager.Player.GetSpellSlotFromName("summonerflash"), 400, 100, 5,
                    true);
                Spells.Add(spell);
            }

            //Zhonyas
            spell = new EvadeSpellData("Zhonyas", 5);
            Spells.Add(spell);

            #region Champion Shields

            #region Akali

            #endregion

            #region Annie

            #endregion

            #region Diana

            #endregion

            #region Galio

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new ShieldData("Karma E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Janna

            if (ObjectManager.Player.ChampionName == "Janna")
            {
                spell = new ShieldData("Janna E", SpellSlot.E, 100, 1);
                spell.CanShieldAllies = true;
                spell.MaxRange = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Morgana

            if (ObjectManager.Player.ChampionName == "Morgana")
            {
                spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3);
                spell.CanShieldAllies = true;
                spell.MaxRange = 750;
                Spells.Add(spell);
            }

            #endregion

            #endregion
        }
Exemplo n.º 4
0
        static EvadeSpellDatabase()
        {
            //Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

            #region Sivir

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new ShieldData("鎴樹簤濂崇 E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #region Nocturne

            if (ObjectManager.Player.ChampionName == "Nocturne")
            {
                spell = new ShieldData("姊﹂瓟 E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Walking.
            spell = new EvadeSpellData("姝ヨ", 1);
            Spells.Add(spell);

            #region Champion MoveSpeed buffs

            #region Blitzcrank

            if (ObjectManager.Player.ChampionName == "Blitzcrank")
            {
                spell = new MoveBuffData(
                    "鏈哄櫒 W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.12f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Draven

            if (ObjectManager.Player.ChampionName == "Draven")
            {
                spell = new MoveBuffData(
                    "寰疯幈鏂囥劎 W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Evelynn

            if (ObjectManager.Player.ChampionName == "Evelynn")
            {
                spell = new MoveBuffData(
                    "瀵″ W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.2f + 0.1f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Garen

            if (ObjectManager.Player.ChampionName == "Garen")
            {
                spell = new MoveBuffData("鐩栦鸡 Q", SpellSlot.Q, 100, 3, () => ObjectManager.Player.MoveSpeed * (1.35f));
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new MoveBuffData(
                    "鍗$壒 W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Get <Obj_AI_Hero>().Any(h => h.IsValidTarget(375))
                            ? ObjectManager.Player.MoveSpeed *
                    (1 + 0.10f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level)
                            : 0);
                Spells.Add(spell);
            }

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new MoveBuffData(
                    "澶╁惎鑰呫劎 E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.35f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Kennen

            if (ObjectManager.Player.ChampionName == "Kennen")
            {
                spell = new MoveBuffData("鍑崡 E", SpellSlot.E, 100, 3, () => 200 + ObjectManager.Player.MoveSpeed);
                //Actually it should be +335 but ingame you only gain +230, rito plz
                Spells.Add(spell);
            }

            #endregion

            #region Khazix

            if (ObjectManager.Player.ChampionName == "Khazix")
            {
                spell = new MoveBuffData("鍗″吂鍏嬨劎 R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * 1.4f);
                Spells.Add(spell);
            }

            #endregion

            #region Lulu

            if (ObjectManager.Player.ChampionName == "Lulu")
            {
                spell = new MoveBuffData(
                    "闇查湶 W", SpellSlot.W, 100, 5,
                    () => ObjectManager.Player.MoveSpeed * (1.3f + ObjectManager.Player.FlatMagicDamageMod / 100 * 0.1f));
                Spells.Add(spell);
            }

            #endregion

            #region Nunu

            if (ObjectManager.Player.ChampionName == "Nunu")
            {
                spell = new MoveBuffData(
                    "鍔姫 W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.1f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Ryze

            if (ObjectManager.Player.ChampionName == "Ryze")
            {
                spell = new MoveBuffData("鐟炲吂 R", SpellSlot.R, 100, 5, () => 80 + ObjectManager.Player.MoveSpeed);
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new MoveBuffData("鎴樹簤濂崇 R", SpellSlot.R, 100, 5, () => ObjectManager.Player.MoveSpeed * (1.6f));
                Spells.Add(spell);
            }

            #endregion

            #region Shyvana

            if (ObjectManager.Player.ChampionName == "Shyvana")
            {
                spell = new MoveBuffData(
                    "榫欏コ W", SpellSlot.W, 100, 4,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.25f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                spell.CheckSpellName = "ShyvanaImmolationAura";
                Spells.Add(spell);
            }

            #endregion

            #region Sona

            if (ObjectManager.Player.ChampionName == "Sona")
            {
                spell = new MoveBuffData(
                    "鐞村コ E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.12f + 0.01f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level +
                     ObjectManager.Player.FlatMagicDamageMod / 100 * 0.075f +
                     0.02f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Teemo ^_^

            if (ObjectManager.Player.ChampionName == "Teemo")
            {
                spell = new MoveBuffData(
                    "鎻愯帿 W", SpellSlot.W, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.06f + 0.04f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Udyr

            if (ObjectManager.Player.ChampionName == "Udyr")
            {
                spell = new MoveBuffData(
                    "涔岃开灏斻劎 E", SpellSlot.E, 100, 3,
                    () =>
                    ObjectManager.Player.MoveSpeed *
                    (1 + 0.1f + 0.05f * ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level));
                Spells.Add(spell);
            }

            #endregion

            #region Zilean

            if (ObjectManager.Player.ChampionName == "Zilean")
            {
                spell = new MoveBuffData("鏃跺厜 E", SpellSlot.E, 100, 3, () => ObjectManager.Player.MoveSpeed * 1.55f);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Dashes

            #region Aatrox

            if (ObjectManager.Player.ChampionName == "Aatrox")
            {
                spell        = new DashData("鍓戦瓟 Q", SpellSlot.Q, 650, false, 400, 3000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Akali

            if (ObjectManager.Player.ChampionName == "Akali")
            {
                spell = new DashData("闃垮崱涓姐劎 R", SpellSlot.R, 800, false, 100, 2461, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Alistar

            if (ObjectManager.Player.ChampionName == "Alistar")
            {
                spell = new DashData("鐗涘ご W", SpellSlot.W, 650, false, 100, 1900, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Caitlyn

            if (ObjectManager.Player.ChampionName == "Caitlyn")
            {
                spell        = new DashData("濂宠 E", SpellSlot.E, 490, true, 250, 1000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Corki

            if (ObjectManager.Player.ChampionName == "Corki")
            {
                spell = new DashData("椋炴満 W", SpellSlot.W, 790, false, 250, 1044, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new DashData("灏忛奔浜恒劎 Q", SpellSlot.Q, 550, true, 100, 1400, 4);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyChampions };
                Spells.Add(spell);
            }

            #endregion

            #region Gragas

            if (ObjectManager.Player.ChampionName == "Gragas")
            {
                spell = new DashData("閰掓《 E", SpellSlot.E, 600, true, 250, 911, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Gnar

            if (ObjectManager.Player.ChampionName == "Gnar")
            {
                spell = new DashData("绾冲皵 E", SpellSlot.E, 50, false, 0, 900, 3);
                spell.CheckSpellName = "GnarE";
                Spells.Add(spell);
            }

            #endregion

            #region Graves

            if (ObjectManager.Player.ChampionName == "Graves")
            {
                spell = new DashData("槌勯奔 E", SpellSlot.E, 425, true, 100, 1223, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Irelia

            if (ObjectManager.Player.ChampionName == "Irelia")
            {
                spell = new DashData("濂冲垁閿嬨劎 Q", SpellSlot.Q, 650, false, 100, 2200, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Jax

            if (ObjectManager.Player.ChampionName == "Jax")
            {
                spell = new DashData("姝﹀櫒 Q", SpellSlot.Q, 700, false, 100, 1400, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.EnemyWards, SpellValidTargets.AllyWards, SpellValidTargets.AllyMinions,
                    SpellValidTargets.AllyChampions, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions
                };
                Spells.Add(spell);
            }

            #endregion

            #region LeBlanc

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("濡栧К W1", SpellSlot.W, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlide";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("濡栧К RW", SpellSlot.R, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlideM";
                Spells.Add(spell);
            }

            #endregion

            #region LeeSin

            if (ObjectManager.Player.ChampionName == "LeeSin")
            {
                spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 250, 2000, 3);
                spell.ValidTargets = new[]
                { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards };
                spell.CheckSpellName = "BlindMonkWOne";
                Spells.Add(spell);
            }

            #endregion

            #region Lucian

            if (ObjectManager.Player.ChampionName == "Lucian")
            {
                spell = new DashData("鍗㈤敗瀹夈劎 W", SpellSlot.E, 425, false, 100, 1350, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Nidalee

            if (ObjectManager.Player.ChampionName == "Nidalee")
            {
                spell = new DashData("濂跺ぇ鍔涖劎 W", SpellSlot.W, 375, true, 250, 943, 3);
                spell.CheckSpellName = "Pounce";
                Spells.Add(spell);
            }

            #endregion

            #region Pantheon

            if (ObjectManager.Player.ChampionName == "Pantheon")
            {
                spell = new DashData("娼樻. W", SpellSlot.W, 600, false, 100, 1000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Riven

            if (ObjectManager.Player.ChampionName == "Riven")
            {
                spell = new DashData("鐟炴枃 Q", SpellSlot.Q, 222, true, 250, 560, 3);
                spell.RequiresPreMove = true;
                Spells.Add(spell);

                spell = new DashData("鐟炴枃 E", SpellSlot.E, 250, false, 250, 1200, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Tristana

            if (ObjectManager.Player.ChampionName == "Tristana")
            {
                spell = new DashData("灏忕偖 W", SpellSlot.W, 900, true, 300, 800, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Tryndamare

            if (ObjectManager.Player.ChampionName == "Tryndamere")
            {
                spell = new DashData("铔帇 E", SpellSlot.E, 650, true, 250, 900, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Vayne

            if (ObjectManager.Player.ChampionName == "Vayne")
            {
                spell = new DashData("钖囨仼 Q", SpellSlot.Q, 300, true, 100, 910, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Wukong

            if (ObjectManager.Player.ChampionName == "MonkeyKing")
            {
                spell = new DashData("鎮熺┖ E", SpellSlot.E, 650, false, 100, 1400, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Blinks

            #region Ezreal

            if (ObjectManager.Player.ChampionName == "Ezreal")
            {
                spell = new BlinkData("EZ E", SpellSlot.E, 450, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Kassadin

            if (ObjectManager.Player.ChampionName == "Kassadin")
            {
                spell = new BlinkData("鍗¤惃涓併劎 R", SpellSlot.R, 700, 200, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new BlinkData("鍗$壒 E", SpellSlot.E, 700, 200, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards
                };
                Spells.Add(spell);
            }

            #endregion

            #region Shaco

            if (ObjectManager.Player.ChampionName == "Shaco")
            {
                spell = new BlinkData("灏忎笐 Q", SpellSlot.Q, 400, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Talon

            if (ObjectManager.Player.ChampionName == "Talon")
            {
                spell = new BlinkData("娉伴殕 E", SpellSlot.E, 700, 100, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Invulnerabilities

            #region Elise

            if (ObjectManager.Player.ChampionName == "Elise")
            {
                spell = new InvulnerabilityData("铚樿洓 E", SpellSlot.E, 250, 3);
                spell.CheckSpellName = "EliseSpiderEInitial";
                spell.SelfCast       = true;
                Spells.Add(spell);
            }

            #endregion

            #region Vladimir

            if (ObjectManager.Player.ChampionName == "Vladimir")
            {
                spell          = new InvulnerabilityData("鍚歌楝笺劎 W", SpellSlot.W, 250, 3);
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new InvulnerabilityData("灏忛奔浜恒劎 E", SpellSlot.E, 250, 3);
                Spells.Add(spell);
            }

            #endregion

            #region MasterYi

            if (ObjectManager.Player.ChampionName == "MasterYi")
            {
                spell              = new InvulnerabilityData("鍓戝湥 Q", SpellSlot.Q, 250, 3);
                spell.MaxRange     = 600;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Flash
            if (ObjectManager.Player.GetSpellSlot("SummonerFlash") != SpellSlot.Unknown)
            {
                spell = new BlinkData("闂幇", ObjectManager.Player.GetSpellSlot("SummonerFlash"), 400, 100, 5, true);
                Spells.Add(spell);
            }

            //Zhonyas
            spell = new EvadeSpellData("涓簹", 5);
            Spells.Add(spell);

            #region Champion Shields

            #region Akali

            #endregion

            #region Annie

            #endregion

            #region Diana

            #endregion

            #region Galio

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Akali

            #endregion

            #region Karma

            if (ObjectManager.Player.ChampionName == "Karma")
            {
                spell = new ShieldData("澶╁惎鑰呫劎 E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Janna

            if (ObjectManager.Player.ChampionName == "Janna")
            {
                spell = new ShieldData("椋庡コ E", SpellSlot.E, 100, 1);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Morgana

            if (ObjectManager.Player.ChampionName == "Morgana")
            {
                spell = new ShieldData("鑾敇濞溿劎 E", SpellSlot.E, 100, 3);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 750;
                Spells.Add(spell);
            }

            #endregion

            #endregion
        }
        static EvadeSpellDatabase()
        {
            // Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

            if (ObjectManager.Player.CharacterName == "Nocturne")
            {
                spell = new ShieldData("Nocturne W", SpellSlot.W, 100, 1, true);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Sivir")
            {
                spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            // Walking
            spell = new EvadeSpellData("Walking", 1);
            Spells.Add(spell);

            #region Champion MoveSpeed buffs

            if (ObjectManager.Player.CharacterName == "Blitzcrank")
            {
                spell = new MoveBuffData("Blitzcrank W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.7f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Draven")
            {
                spell = new MoveBuffData("Draven W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.4f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Garen")
            {
                spell = new MoveBuffData("Garen Q", SpellSlot.Q, 100, 3,
                                         () => ObjectManager.Player.MoveSpeed * 1.3f);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kaisa")
            {
                spell = new MoveBuffData("Kaisa E", SpellSlot.E, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + (0.55f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level - 1))
                                          * (1 + ObjectManager.Player.PercentAttackSpeedMod)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Karma")
            {
                spell = new MoveBuffData("Karma E Accel", SpellSlot.E, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.4f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Katarina")
            {
                spell = new MoveBuffData("Katarina W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.5f + 0.1f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kayle")
            {
                spell = new MoveBuffData("Kayle W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.24f + 0.04f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)
                                          + 0.08f * ObjectManager.Player.TotalMagicalDamage / 100));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kennen")
            {
                spell = new MoveBuffData("Kennen E", SpellSlot.E, 100, 3,
                                         () => ObjectManager.Player.MoveSpeed + 200);
                // Actually it should be +335 but ingame you only gain +230, rito plz
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Khazix")
            {
                spell = new MoveBuffData("Khazix R", SpellSlot.R, 100, 5,
                                         () => ObjectManager.Player.MoveSpeed * 1.4f);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Lulu")
            {
                spell = new MoveBuffData("Lulu W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1.3f + 0.05f * ObjectManager.Player.TotalMagicalDamage / 100));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Poppy")
            {
                spell = new MoveBuffData("Poppy W", SpellSlot.W, 100, 3,
                                         () => ObjectManager.Player.MoveSpeed * 1.3f);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Rumble")
            {
                spell = new MoveBuffData("Rumble W Accel", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.2f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)) *
                                         (ObjectManager.Player.HasBuff("rumbledangerzonebuff") ? 1.5f : 1));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Shyvana")
            {
                spell = new MoveBuffData("Shyvana W", SpellSlot.W, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.3f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Sona")
            {
                spell = new MoveBuffData("Sona E", SpellSlot.E, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.1f + 0.01f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level - 1)
                                          + 0.06f * ObjectManager.Player.TotalMagicalDamage / 100));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Udyr")
            {
                spell = new MoveBuffData("Udyr E", SpellSlot.E, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.15f + 0.05f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Volibear")
            {
                spell = new MoveBuffData("Volibear Q", SpellSlot.Q, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.15f + 0.025f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Level - 1)));
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Zilean")
            {
                spell = new MoveBuffData("Zilean E", SpellSlot.E, 100, 3,
                                         () =>
                                         ObjectManager.Player.MoveSpeed *
                                         (1 + 0.4f + 0.15f * Math.Max(0, ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level - 1)));
                Spells.Add(spell);
            }

            #endregion

            #region Champion Dashes

            if (ObjectManager.Player.CharacterName == "Aatrox")
            {
                spell = new DashData("Aatrox E", SpellSlot.E, 300, false, 100, 800, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Akali")
            {
                spell        = new DashData("Akali E", SpellSlot.E, 395, true, 250, 1400, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Alistar")
            {
                spell = new DashData("Alistar W", SpellSlot.W, 650, false, 100, 1500, 3);
                spell.ValidTargets = new SpellValidTargets[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Braum")
            {
                spell = new DashData("Braum W", SpellSlot.W, 650, false, 100, 1500, 3);
                spell.ValidTargets = new SpellValidTargets[] { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Caitlyn")
            {
                spell        = new DashData("Caitlyn E", SpellSlot.E, 390, true, 250, 1000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Corki")
            {
                spell = new DashData("Corki W", SpellSlot.W, 600, false, 100, 975, 3);
                spell.CheckSpellName = "CarpetBomb";
                spell.MinRange       = 300;
                Spells.Add(spell);

                spell = new DashData("Corki W Mega", SpellSlot.W, 1900, true, 100, 1500, 3);
                spell.CheckSpellName = "CarpetBombMega";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Fiora")
            {
                spell = new DashData("Fiora Q", SpellSlot.Q, 400, false, 100, 1100, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Gnar")
            {
                spell = new DashData("Gnar E", SpellSlot.E, 475, false, 100, 900, 3);
                spell.CheckSpellName = "GnarE";
                Spells.Add(spell);

                spell = new DashData("Gnar Big E", SpellSlot.E, 600, false, 100, 900, 3);
                spell.CheckSpellName = "GnarBigE";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Gragas")
            {
                spell = new DashData("Gragas E", SpellSlot.E, 600, true, 100, 910, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Graves")
            {
                spell          = new DashData("Graves E", SpellSlot.E, 425, false, 100, 1140, 3);
                spell.MinRange = 270;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Irelia")
            {
                spell = new DashData("Irelia Q", SpellSlot.Q, 600, false, 100, 1835, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Jax")
            {
                spell = new DashData("Jax Q", SpellSlot.Q, 700, false, 100, 1400, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards
                };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Jayce")
            {
                spell = new DashData("Jayce Q", SpellSlot.Q, 600, false, 100, 800, 3);
                spell.CheckSpellName = "JayceToTheSkies";
                spell.ValidTargets   = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Khazix")
            {
                spell = new DashData("Khazix E", SpellSlot.E, 700, false, 100, 1260, 3);
                spell.CheckSpellName = "KhazixE";
                Spells.Add(spell);

                spell = new DashData("Khazix E Long", SpellSlot.E, 900, false, 100, 1210, 3);
                spell.CheckSpellName = "KhazixELong";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kindred")
            {
                spell = new DashData("Kindred Q", SpellSlot.Q, 325, false, 100, 830, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kled")
            {
                spell = new DashData("Kled E", SpellSlot.E, 600, true, 100, 945, 3);
                spell.CheckSpellName = "KledE";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Leblanc")
            {
                spell = new DashData("Leblanc W", SpellSlot.W, 600, false, 100, 1450, 3);
                spell.CheckSpellName = "LeblancW";
                Spells.Add(spell);

                spell = new DashData("Leblanc RW", SpellSlot.R, 600, false, 100, 1450, 3);
                spell.CheckSpellName = "LeblancRW";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "LeeSin")
            {
                spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 100, 2000, 3);
                spell.CheckSpellName = "BlindMonkWOne";
                spell.ValidTargets   = new[] { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Lucian")
            {
                spell          = new DashData("Lucian E", SpellSlot.E, 445, false, 100, 1350, 3);
                spell.MinRange = 200;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "MonkeyKing")
            {
                spell = new DashData("MonkeyKing E", SpellSlot.E, 650, false, 100, 1395, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Nidalee")
            {
                spell = new DashData("Nidalee W", SpellSlot.W, 400, false, 100, 940, 3);
                spell.CheckSpellName = "Pounce";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Pantheon")
            {
                spell = new DashData("Pantheon W", SpellSlot.W, 600, false, 100, 1000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Pyke")
            {
                spell = new DashData("Pyke E", SpellSlot.E, 550, true, 100, 2000, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Rakan")
            {
                spell = new DashData("Rakan W", SpellSlot.W, 650, false, 100, 1500, 3);
                Spells.Add(spell);

                spell = new DashData("Rakan E", SpellSlot.E, 650, false, 100, 1800, 3);
                spell.ValidTargets = new[] { SpellValidTargets.AllyChampions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Riven")
            {
                spell = new DashData("Riven Q", SpellSlot.Q, 275, true, 100, 780, 3);
                spell.RequiresPreMove = true;
                Spells.Add(spell);

                spell = new DashData("Riven E", SpellSlot.E, 250, true, 100, 1190, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Sejuani")
            {
                spell = new DashData("Sejuani Q", SpellSlot.Q, 650, false, 100, 1000, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Shen")
            {
                spell = new DashData("Shen E", SpellSlot.E, 600, false, 100, 1155, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Sylas")
            {
                spell = new DashData("Sylas E", SpellSlot.E, 400, false, 100, 1450, 3);
                spell.CheckSpellName = "SylasE";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Tristana")
            {
                spell = new DashData("Tristana W", SpellSlot.W, 900, false, 250, 1110, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Tryndamere")
            {
                spell = new DashData("Tryndamere E", SpellSlot.E, 650, false, 100, 900, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Vayne")
            {
                spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 100, 830, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "XinZhao")
            {
                spell = new DashData("XinZhao E", SpellSlot.E, 650, false, 100, 3000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Champion Blinks

            if (ObjectManager.Player.CharacterName == "Ezreal")
            {
                spell = new BlinkData("Ezreal E", SpellSlot.E, 475, 250, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Kassadin")
            {
                spell = new BlinkData("Kassadin R", SpellSlot.R, 500, 250, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Katarina")
            {
                spell = new BlinkData("Katarina E", SpellSlot.E, 725, 100, 3);
                spell.PositionOnly = true;
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions
                };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Shaco")
            {
                spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 250, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Champion Invulnerabilities

            if (ObjectManager.Player.CharacterName == "Elise")
            {
                spell = new InvulnerabilityData("Elise E", SpellSlot.E, 100, 3);
                spell.CheckSpellName = "EliseSpiderEInitial";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Fiora")
            {
                spell = new InvulnerabilityData("Fiora W", SpellSlot.W, 100, 4);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Fizz")
            {
                spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 100, 3);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Maokai")
            {
                spell              = new InvulnerabilityData("Maokai W", SpellSlot.W, 100, 3);
                spell.MaxRange     = 525;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "MasterYi")
            {
                spell              = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 100, 3);
                spell.MaxRange     = 600;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Vladimir")
            {
                spell          = new InvulnerabilityData("Vladimir W", SpellSlot.W, 100, 3);
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Xayah")
            {
                spell = new InvulnerabilityData("Xayah R", SpellSlot.R, 100, 5);
                Spells.Add(spell);
            }

            #endregion

            // Flash
            spell = new BlinkData("Flash", SpellSlot.Unknown, 425, 100, 5, true);
            spell.CheckSpellName = "SummonerFlash";
            Spells.Add(spell);

            // Zhonyas
            spell = new EvadeSpellData("Zhonyas", 5);
            Spells.Add(spell);

            // Stopwatch
            spell = new EvadeSpellData("Stopwatch", 5);
            Spells.Add(spell);

            #region Champion Shields

            if (ObjectManager.Player.CharacterName == "Diana")
            {
                spell = new ShieldData("Diana W", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Ivern")
            {
                spell = new ShieldData("Ivern E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 750;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Janna")
            {
                spell = new ShieldData("Janna E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "JarvanIV")
            {
                spell = new ShieldData("JarvanIV W", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Karma")
            {
                spell = new ShieldData("Karma E Shield", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Lulu")
            {
                spell = new ShieldData("Lulu E", SpellSlot.E, 100, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 650;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Morgana")
            {
                spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Nautilus")
            {
                spell = new ShieldData("Nautilus W", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Rumble")
            {
                spell = new ShieldData("Rumble W Shield", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Sion")
            {
                spell = new ShieldData("Sion W", SpellSlot.W, 100, 2);
                spell.CheckSpellName = "SionW";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Skarner")
            {
                spell = new ShieldData("Skarner W", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Taric")
            {
                spell = new ShieldData("Taric W", SpellSlot.W, 250, 2);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            if (ObjectManager.Player.CharacterName == "Udyr")
            {
                spell = new ShieldData("Udyr W", SpellSlot.W, 100, 2);
                Spells.Add(spell);
            }

            #endregion

            if (Config.PrintSpellData)
            {
                Logging.Write(false, true, "EV")(LogLevel.Info, "[EvadeSharp] Added {0} spells into EvadeSpellDatabase.", Spells.Count);
            }
        }
Exemplo n.º 6
0
        static EvadeSpellDatabase()
        {
            //Add available evading spells to the database. SORTED BY PRIORITY.
            EvadeSpellData spell;

            #region Champion SpellShields

            #region Sivir

            if (ObjectManager.Player.ChampionName == "Sivir")
            {
                spell = new ShieldData("Sivir E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #region Nocturne

            if (ObjectManager.Player.ChampionName == "Nocturne")
            {
                spell = new ShieldData("Nocturne E", SpellSlot.E, 100, 1, true);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Walking.
            spell = new EvadeSpellData("Walking", 1);
            Spells.Add(spell);

            #region Champion Dashes
            #region Aatrox

            if (ObjectManager.Player.ChampionName == "Aatrox")
            {
                spell        = new DashData("Aatrox Q", SpellSlot.Q, 650, false, 400, 3000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Akali

            if (ObjectManager.Player.ChampionName == "Akali")
            {
                spell = new DashData("Akali R", SpellSlot.R, 800, false, 100, 2461, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }
            #endregion

            #region Alistar

            if (ObjectManager.Player.ChampionName == "Alistar")
            {
                spell = new DashData("Alistar W", SpellSlot.W, 650, false, 100, 1900, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Caitlyn

            if (ObjectManager.Player.ChampionName == "Caitlyn")
            {
                spell        = new DashData("Caitlyn E", SpellSlot.E, 490, true, 250, 1000, 3);
                spell.Invert = true;
                Spells.Add(spell);
            }

            #endregion

            #region Corki

            if (ObjectManager.Player.ChampionName == "Corki")
            {
                spell = new DashData("Corki W", SpellSlot.W, 790, false, 250, 1044, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Gragas

            if (ObjectManager.Player.ChampionName == "Gragas")
            {
                spell = new DashData("Gragas E", SpellSlot.E, 600, true, 250, 911, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Gnar
            if (ObjectManager.Player.ChampionName == "Gnar")
            {
                spell = new DashData("Gnar E", SpellSlot.E, 50, false, 0, 900, 3);
                spell.CheckSpellName = "GnarE";
                Spells.Add(spell);
            }

            #endregion

            #region Graves

            if (ObjectManager.Player.ChampionName == "Graves")
            {
                spell = new DashData("Graves E", SpellSlot.E, 1223, true, 100, 425, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Irelia

            if (ObjectManager.Player.ChampionName == "Irelia")
            {
                spell = new DashData("Irelia Q", SpellSlot.Q, 650, false, 100, 2200, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Jax

            if (ObjectManager.Player.ChampionName == "Jax")
            {
                spell = new DashData("Jax Q", SpellSlot.Q, 700, false, 100, 1400, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyWards, SpellValidTargets.AllyWards, SpellValidTargets.AllyMinions, SpellValidTargets.AllyChampions, SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion


            #region LeBlanc

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("LeBlanc W1", SpellSlot.W, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlide";
                Spells.Add(spell);
            }

            if (ObjectManager.Player.ChampionName == "LeBlanc")
            {
                spell = new DashData("LeBlanc RW", SpellSlot.R, 600, false, 100, 1621, 3);
                spell.CheckSpellName = "LeblancSlideM";
                Spells.Add(spell);
            }

            #endregion

            #region LeeSin

            if (ObjectManager.Player.ChampionName == "LeeSin")
            {
                spell = new DashData("LeeSin W", SpellSlot.W, 700, false, 250, 2000, 3);
                spell.ValidTargets = new[]
                { SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards };
                spell.CheckSpellName = "BlindMonkWOne";
                Spells.Add(spell);
            }

            #endregion

            #region Nidalee

            if (ObjectManager.Player.ChampionName == "Nidalee")
            {
                spell = new DashData("Nidalee W", SpellSlot.W, 375, true, 250, 943, 3);
                spell.CheckSpellName = "Pounce";
                Spells.Add(spell);
            }

            #endregion

            #region Pantheon

            if (ObjectManager.Player.ChampionName == "Pantheon")
            {
                spell = new DashData("Pantheon W", SpellSlot.W, 600, false, 100, 1000, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #region Riven

            if (ObjectManager.Player.ChampionName == "Riven")
            {
                spell = new DashData("Riven Q", SpellSlot.Q, 222, true, 250, 560, 3);
                spell.RequiresPreMove = true;
                Spells.Add(spell);

                spell = new DashData("Riven E", SpellSlot.E, 250, false, 250, 1200, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Tristana

            if (ObjectManager.Player.ChampionName == "Tristana")
            {
                spell = new DashData("Tristana W", SpellSlot.W, 900, true, 300, 800, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Tryndamare

            if (ObjectManager.Player.ChampionName == "Tryndamere")
            {
                spell = new DashData("Tryndamere E", SpellSlot.E, 650, true, 250, 900, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Vayne

            if (ObjectManager.Player.ChampionName == "Vayne")
            {
                spell = new DashData("Vayne Q", SpellSlot.Q, 300, true, 250, 900, 2);
                Spells.Add(spell);
            }

            #endregion

            #region Wukong

            if (ObjectManager.Player.ChampionName == "MonkeyKing")
            {
                spell = new DashData("Wukong E", SpellSlot.E, 650, false, 100, 1400, 3);
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Blinks

            #region Ezreal

            if (ObjectManager.Player.ChampionName == "Ezreal")
            {
                spell = new BlinkData("Ezreal E", SpellSlot.E, 450, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #region Kassadin

            if (ObjectManager.Player.ChampionName == "Kassadin")
            {
                spell = new BlinkData("Kassadin R", SpellSlot.R, 700, 200, 5);
                Spells.Add(spell);
            }

            #endregion

            #region Katarina

            if (ObjectManager.Player.ChampionName == "Katarina")
            {
                spell = new BlinkData("Katarina E", SpellSlot.E, 700, 100, 3);
                spell.ValidTargets = new[]
                {
                    SpellValidTargets.AllyChampions, SpellValidTargets.AllyMinions, SpellValidTargets.AllyWards,
                    SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions, SpellValidTargets.EnemyWards
                };
                Spells.Add(spell);
            }

            #endregion

            #region Shaco

            if (ObjectManager.Player.ChampionName == "Shaco")
            {
                spell = new BlinkData("Shaco Q", SpellSlot.Q, 400, 350, 3);
                Spells.Add(spell);
            }

            #endregion

            #endregion

            #region Champion Invulnerabilities

            #region Elise

            if (ObjectManager.Player.ChampionName == "Elise")
            {
                spell = new InvulnerabilityData("Elise E", SpellSlot.E, 250, 3);
                spell.CheckSpellName = "EliseSpiderEInitial";
                spell.SelfCast       = true;
                Spells.Add(spell);
            }

            #endregion

            #region Vladimir

            if (ObjectManager.Player.ChampionName == "Vladimir")
            {
                spell          = new InvulnerabilityData("Vladimir W", SpellSlot.W, 250, 3);
                spell.SelfCast = true;
                Spells.Add(spell);
            }

            #endregion

            #region Fizz

            if (ObjectManager.Player.ChampionName == "Fizz")
            {
                spell = new InvulnerabilityData("Fizz E", SpellSlot.E, 250, 3);
                Spells.Add(spell);
            }

            #endregion

            #region MasterYi

            if (ObjectManager.Player.ChampionName == "MasterYi")
            {
                spell              = new InvulnerabilityData("MasterYi Q", SpellSlot.Q, 250, 3);
                spell.MaxRange     = 600;
                spell.ValidTargets = new[] { SpellValidTargets.EnemyChampions, SpellValidTargets.EnemyMinions };
                Spells.Add(spell);
            }

            #endregion

            #endregion

            //Flash
            if (ObjectManager.Player.GetSpellSlot("SummonerFlash") != SpellSlot.Unknown)
            {
                spell = new BlinkData("Flash", ObjectManager.Player.GetSpellSlot("SummonerFlash"), 400, 100, 5, true);
                Spells.Add(spell);
            }

            //Zhonyas
            spell = new EvadeSpellData("Zhonyas", 5);
            Spells.Add(spell);

            #region Champion Shields

            #region Janna

            if (ObjectManager.Player.ChampionName == "Janna")
            {
                spell = new ShieldData("Janna E", SpellSlot.E, 100, 1);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 800;
                Spells.Add(spell);
            }

            #endregion

            #region Morgana

            if (ObjectManager.Player.ChampionName == "Morgana")
            {
                spell = new ShieldData("Morgana E", SpellSlot.E, 100, 3);
                spell.CanShieldAllies = true;
                spell.MaxRange        = 750;
                Spells.Add(spell);
            }

            #endregion

            #endregion
        }