示例#1
0
        private static void OnGameUpdate(EventArgs args)
        {
            // Always active stuff, ignite and stuff :P
            ActiveModes.OnPermaActive();

            if (SpellQueue.IsReady)
            {
                if (Config.KeyLinks["comboActive"].Value.Active)
                {
                    ActiveModes.OnCombo();
                }
                if (Config.KeyLinks["harassActive"].Value.Active)
                {
                    ActiveModes.OnHarass();
                }
                if (Config.KeyLinks["waveActive"].Value.Active)
                {
                    ActiveModes.OnWaveClear();
                }
                if (Config.KeyLinks["jungleActive"].Value.Active)
                {
                    ActiveModes.OnJungleClear();
                }
            }
            if (Config.KeyLinks["fleeActive"].Value.Active)
            {
                ActiveModes.OnFlee();
            }
        }
示例#2
0
 public static void AfterAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (unit.IsMe)
     {
         var baseTarget = target as Obj_AI_Base;
         if (baseTarget != null)
         {
             if (Config.KeyLinks["comboActive"].Value.Active)
             {
                 ActiveModes.OnCombo(baseTarget);
             }
             if (Config.KeyLinks["harassActive"].Value.Active)
             {
                 ActiveModes.OnHarass(baseTarget);
             }
             if (Config.KeyLinks["waveActive"].Value.Active)
             {
                 ActiveModes.OnWaveClear(baseTarget);
             }
             if (Config.KeyLinks["jungleActive"].Value.Active)
             {
                 ActiveModes.OnJungleClear(baseTarget);
             }
         }
     }
 }