Exemplo n.º 1
0
        public Vayne()
        {
            base.Q = new LeagueSharp.SDK.Spell(EloBuddy.SpellSlot.Q, 300);
            base.W = new LeagueSharp.SDK.Spell(EloBuddy.SpellSlot.W);
            base.E = new LeagueSharp.SDK.Spell(EloBuddy.SpellSlot.E, 550);
            base.R = new LeagueSharp.SDK.Spell(EloBuddy.SpellSlot.R);

            base.E.SetSkillshot(0.42f, 50f, 1300f, false, LeagueSharp.SDK.Enumerations.SkillshotType.SkillshotLine);
            CachedGapclosers   = new List <Tuple <string, LeagueSharp.Data.DataTypes.SpellDatabaseEntry> >();
            CachedCrowdControl = new List <Tuple <string, LeagueSharp.Data.DataTypes.SpellDatabaseEntry> >();
            foreach (var enemy in EloBuddy.ObjectManager.Get <EloBuddy.AIHeroClient>().Where(hero => hero.IsEnemy))
            {
                foreach (var spell in enemy.Spellbook.Spells)
                {
                    var sdata = SpellDatabase.GetByName(spell.Name);
                    if (sdata != null)
                    {
                        if (sdata.SpellTags == null)
                        {
                            break;
                        }
                        if (
                            sdata.SpellTags.Any(
                                st => st == SpellTags.Dash || st == LeagueSharp.Data.Enumerations.SpellTags.Blink))
                        {
                            CachedGapclosers.Add(new Tuple <string, LeagueSharp.Data.DataTypes.SpellDatabaseEntry>(enemy.CharData.BaseSkinName,
                                                                                                                   sdata));
                        }
                        if (sdata.SpellTags.Any(st => st == SpellTags.CrowdControl))
                        {
                            CachedCrowdControl.Add(new Tuple <string, LeagueSharp.Data.DataTypes.SpellDatabaseEntry>(enemy.CharData.BaseSkinName,
                                                                                                                     sdata));
                        }
                    }
                }
            }
            InitMenu();
            DelayedOnUpdate        += OnUpdate;
            Orbwalker.OnPreAttack  += Orbwalker_OnPreAttack;
            Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
            EloBuddy.Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            EloBuddy.Drawing.OnDraw      += OnDraw;
            Events.OnGapCloser           += OnGapCloser;
            Events.OnInterruptableTarget += OnInterruptableTarget;
        }
Exemplo n.º 2
0
        public Vayne()
        {
            base.Q = new Spell(SpellSlot.Q, 300);
            base.W = new Spell(SpellSlot.W);
            base.E = new Spell(SpellSlot.E, 550);
            base.R = new Spell(SpellSlot.R);

            base.E.SetSkillshot(0.42f, 50f, 1300f, false, SkillshotType.SkillshotLine);
            CachedGapclosers   = new List <Tuple <string, SpellDatabaseEntry> >();
            CachedCrowdControl = new List <Tuple <string, SpellDatabaseEntry> >();
            foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(hero => hero.IsEnemy))
            {
                foreach (var spell in enemy.Spellbook.Spells)
                {
                    var sdata = SpellDatabase.GetByName(spell.Name);
                    if (sdata != null)
                    {
                        if (sdata.SpellTags == null)
                        {
                            break;
                        }
                        if (
                            sdata.SpellTags.Any(
                                st => st == SpellTags.Dash || st == SpellTags.Blink))
                        {
                            CachedGapclosers.Add(new Tuple <string, SpellDatabaseEntry>(enemy.CharData.BaseSkinName,
                                                                                        sdata));
                        }
                        if (sdata.SpellTags.Any(st => st == SpellTags.CrowdControl))
                        {
                            CachedCrowdControl.Add(new Tuple <string, SpellDatabaseEntry>(enemy.CharData.BaseSkinName,
                                                                                          sdata));
                        }
                    }
                }
            }
            InitMenu();
            DelayedOnUpdate                += OnUpdate;
            Orbwalker.OnAction             += OnOrbwalkingAction;
            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
            Drawing.OnDraw               += OnDraw;
            Events.OnGapCloser           += OnGapCloser;
            Events.OnInterruptableTarget += OnInterruptableTarget;
        }
Exemplo n.º 3
0
 public BaseSpell(string spellName)
 {
     this.SData = SpellDatabase.GetByName(spellName);
 }