Beispiel #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="Draven" /> class.
        /// </summary>
        public Draven()
        {
            // Menu Generation
            this.CreateMenu = MenuGenerator.Generate;

            // Spell initialization
            this.spells[SpellSlot.E].SetSkillshot(250f, 130f, 1400f, false, SkillshotType.SkillshotLine);
            this.spells[SpellSlot.R].SetSkillshot(400f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            GameObject.OnCreate += (sender, args) =>
            {
                if (sender != null && sender.Name.Contains("Q_reticle_self"))
                {
                    var axe = new Axe()
                    {
                        AxeObject = sender, Position = sender.Position, CreationTime = Game.Time,
                        EndTime   = Game.Time + 1.20f
                    };
                    this.axesList.Add(axe);
                    Utility.DelayAction.Add(
                        1800,
                        () =>
                    {
                        if (this.axesList.Contains(axe))
                        {
                            this.axesList.Remove(axe);
                        }
                    });
                }
            };

            GameObject.OnDelete += (sender, args) =>
            {
                if (sender != null && sender.Name.Contains("Q_reticle_self"))
                {
                    if (this.GetItemValue <bool>("com.iseries.draven.combo.useW") && ObjectManager.Player.ManaPercent >= this.GetItemValue <Slider>("com.iseries.draven.combo.wmana").Value&& this.spells[SpellSlot.W].IsReady() && !this.HasWBuff() && Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && ObjectManager.Player.CountEnemiesInRange(700f) > 0)
                    {
                        this.spells[SpellSlot.W].Cast();
                    }

                    this.axesList.RemoveAll(axe => axe.AxeObject.NetworkId == sender.NetworkId);
                }
            };

            AntiGapcloser.OnEnemyGapcloser     += this.OnIncomingGapcloser;
            Interrupter2.OnInterruptableTarget += this.OnInterruptableTarget;
        }
Beispiel #2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="Draven" /> class.
        /// </summary>
        public Draven()
        {
            // Menu Generation
            this.CreateMenu = MenuGenerator.Generate;

            // Spell initialization
            this.spells[SpellSlot.E].SetSkillshot(250f, 130f, 1400f, false, SkillshotType.SkillshotLine);
            this.spells[SpellSlot.R].SetSkillshot(400f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            GameObject.OnCreate += (sender, args) =>
                {
                    if (sender != null && sender.Name.Contains("Q_reticle_self"))
                    {
                        var axe = new Axe()
                                      {
                                          AxeObject = sender, Position = sender.Position, CreationTime = Game.Time, 
                                          EndTime = Game.Time + 1.20f
                                      };
                        this.axesList.Add(axe);
                        Utility.DelayAction.Add(
                            1800, 
                            () =>
                                {
                                    if (this.axesList.Contains(axe))
                                    {
                                        this.axesList.Remove(axe);
                                    }
                                });
                    }
                };

            GameObject.OnDelete += (sender, args) =>
                {
                    if (sender != null && sender.Name.Contains("Q_reticle_self"))
                    {
                        if (this.GetItemValue<bool>("com.iseries.draven.combo.useW") && ObjectManager.Player.ManaPercent >= this.GetItemValue<Slider>("com.iseries.draven.combo.wmana").Value && this.spells[SpellSlot.W].IsReady() && !this.HasWBuff() && Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && ObjectManager.Player.CountEnemiesInRange(700f) > 0)
                        {
                            this.spells[SpellSlot.W].Cast();
                        }

                        this.axesList.RemoveAll(axe => axe.AxeObject.NetworkId == sender.NetworkId);
                    }
                };

            AntiGapcloser.OnEnemyGapcloser += this.OnIncomingGapcloser;
            Interrupter2.OnInterruptableTarget += this.OnInterruptableTarget;
        }