Exemple #1
0
        protected override void CombatRoutine(GUnit Cible)
        {
            if (waitTankPull)
            {
                if (BotHelper.CombatTime(Cible) < TimeSpan.FromMilliseconds(1000))
                {
                    // combat vien juste de commencer
                    Thread.Sleep(timeToWaitPull);
                }
            }

            while (Cible.IsAlive && localPlayer.IsAlive)
            {
                if (BreakCurActionB == true)
                {
                    BreakCurActionB = false;
                    break;
                }
                LuaVM.DoString(LuaHelp.AttackingTarget);

                Repositionnement(Cible);
                if (!Cible.inCombat || !localPlayer.inCombat)
                {
                    Cible.Target();
                    Thread.Sleep(100);
                }
                Thread.Sleep(200);

                TargetList.Sort();
            }
        }