Exemple #1
0
        public virtual void Update(Orbwalking.OrbwalkingMode mode, ComboProvider combo, Obj_AI_Hero target)
        {
            if (mode == Orbwalking.OrbwalkingMode.None)
            {
                return;
            }
            if (mode == Orbwalking.OrbwalkingMode.LaneClear && SwitchClearToHarassOnTarget && target != null)
            {
                mode = Orbwalking.OrbwalkingMode.Mixed;
            }
            if (UseManaManager && !ManaManager.CanUseMana(mode))
            {
                return;
            }

            if (OnlyUpdateIfTargetValid && (mode == Orbwalking.OrbwalkingMode.Combo || mode == Orbwalking.OrbwalkingMode.Mixed) && !target.IsValidTarget())
            {
                return;
            }
            if (OnlyUpdateIfCastable && !CanBeCast())
            {
                return;                                       //Todo: check if nessecary with new comboSystem
            }
            MinHitChance = mode == Orbwalking.OrbwalkingMode.Combo ? MinComboHitchance : MinHarassHitchance;

            switch (mode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                if (ComboEnabled)
                {
                    Combo(combo, target);
                }
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                if (LaneclearEnabled)
                {
                    LaneClear(combo, target);
                }
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                if (HarassEnabled)
                {
                    Harass(combo, target);
                }
                break;
            }
        }
Exemple #2
0
        public virtual void Update(Orbwalker.ActiveModes mode, ComboProvider combo, AIHeroClient target)
        {
            if (mode == Orbwalker.ActiveModes.None)
            {
                return;
            }
            if (mode == Orbwalker.ActiveModes.LaneClear && SwitchClearToHarassOnTarget && target != null)
            {
                mode = Orbwalker.ActiveModes.Harass;
            }

            if (OnlyUpdateIfTargetValid && (mode == Orbwalker.ActiveModes.Combo || mode == Orbwalker.ActiveModes.Harass) &&
                !target.IsValidTarget())
            {
                return;
            }
            if (OnlyUpdateIfCastable && !CanBeCast())
            {
                return;                                       //Todo: check if nessecary with new comboSystem
            }
            MinHitChance = mode == Orbwalker.ActiveModes.Combo ? MinComboHitchance : MinHarassHitchance;

            if (mode == Orbwalker.ActiveModes.Combo)
            {
                if (ComboEnabled)
                {
                    Combo(combo, target);
                }
            }

            if (mode == Orbwalker.ActiveModes.LaneClear || mode == Orbwalker.ActiveModes.JungleClear)
            {
                if (LaneclearEnabled && ObjectManager.Player.ManaPercent > Program.getMiscMenuSL("manaLC"))
                {
                    LaneClear(combo, target);
                }
            }

            if (mode == Orbwalker.ActiveModes.Harass)
            {
                if (HarassEnabled && ObjectManager.Player.ManaPercent > Program.getMiscMenuSL("manaH"))
                {
                    Harass(combo, target);
                }
            }
        }
Exemple #3
0
 /// <summary>
 /// Add Initialisation logic in sub class. Called by ComboProvider.SetActive(skill)
 /// </summary>
 /// <param name="combo"></param>
 public virtual void Initialize(ComboProvider combo)
 {
     Provider = combo;
 }
Exemple #4
0
 public virtual void Interruptable(ComboProvider combo, Obj_AI_Hero sender, ComboProvider.InterruptableSpell interruptableSpell, float endTime)
 {
 }
Exemple #5
0
 public virtual void Gapcloser(ComboProvider combo, ActiveGapcloser gapcloser)
 {
 }
Exemple #6
0
 public virtual void Harass(ComboProvider combo, Obj_AI_Hero target)
 {
     Execute(target);
 }
Exemple #7
0
 public virtual void LaneClear(ComboProvider combo, Obj_AI_Hero target)
 {
 }
Exemple #8
0
 public virtual void Harass(ComboProvider combo, AIHeroClient target)
 {
     Execute(target);
 }
Exemple #9
0
 public virtual void LaneClear(ComboProvider combo, AIHeroClient target)
 {
 }
Exemple #10
0
 public virtual void Interruptable(ComboProvider combo, AIHeroClient sender, ComboProvider.InterruptableSpell interruptableSpell, float endTime)
 {
 }