Пример #1
0
 /// <summary>
 /// Add Initialisation logic in sub class. Called by ComboProvider.SetActive(skill)
 /// </summary>
 /// <param name="combo"></param>
 public virtual void Initialize(IMainContext context, ComboProvider combo)
 {
     Provider = combo;
     Context  = context;
 }
Пример #2
0
 public virtual void Interruptable(IMainContext context, ComboProvider combo, AIHeroClient sender, ComboProvider.InterruptableSpell interruptableSpell)
 {
 }
Пример #3
0
 public virtual void Gapcloser(IMainContext context, ComboProvider combo, ActiveGapcloser gapcloser)
 {
 }
Пример #4
0
 public virtual void Harass(IMainContext context, ComboProvider combo, AIHeroClient target)
 {
     Cast(target);
 }
Пример #5
0
 public virtual void LaneClear(IMainContext context, ComboProvider combo, AIHeroClient target)
 {
 }
Пример #6
0
        public virtual void Update(Orbwalking.OrbwalkingMode mode, IMainContext context, ComboProvider combo, AIHeroClient target)
        {
            if (mode == Orbwalking.OrbwalkingMode.None)
            {
                return;
            }
            if (mode == Orbwalking.OrbwalkingMode.LaneClear && SwitchClearToHarassOnTarget && target != null && HarassEnabled)
            {
                mode = Orbwalking.OrbwalkingMode.Mixed;
            }
            if (UseManaManager && !ManaManager.CanUseMana(mode))
            {
                return;
            }
            switch (mode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                if (ComboEnabled)
                {
                    Combo(context, combo, target);
                }
                break;

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

            case Orbwalking.OrbwalkingMode.Mixed:
                if (HarassEnabled)
                {
                    Harass(context, combo, target);
                }
                break;
            }
        }