コード例 #1
0
        public void HealTarget()
        {
            HealList.Sort();
            Cible = HealList[0].Target;

            HealRoutine(HealList[0].Target);
        }
コード例 #2
0
        public void addHealTarget(ulong Guid)
        {
            HealthPrioStruct prio = new HealthPrioStruct();

            do
            {
                prio.Target = ObjectList.FindUnit(Guid);
                Thread.Sleep(10);
            } while (prio.Target == null);



            bool deja = false;

            for (int i = 0; i < HealList.Count; i++)
            {
                if (HealList[i].Target == prio.Target)
                {
                    deja = true;
                }
            }
            if (!deja)
            {
                this.HealList.Add(prio);
                SendConsole(prio.Target.Name + " will be healed ", ConsoleLvl.Medium);
            }



            HealList.Sort();
            // showTargetlist();
        }
コード例 #3
0
        public void addRezTarget(ulong Guid, Bot b)
        {
            RezPrioStruct prio = new RezPrioStruct();

            do
            {
                prio.Target = ObjectList.FindUnit(Guid);
                Thread.Sleep(10);
            } while (prio.Target == null);



            bool deja = false;

            for (int i = 0; i < RezList.Count; i++)
            {
                if (RezList[i].Target == prio.Target)
                {
                    deja = true;
                }
            }
            for (int i = 0; i < HealList.Count; i++)
            {
                if (HealList[i].Target == prio.Target)
                {
                    HealList.RemoveAt(i);
                    break;
                }
            }

            if (!deja)
            {
                this.RezList.Add(prio);
                SendConsole(prio.Target.Name + " will be rez ", ConsoleLvl.Medium);
            }



            RezList.Sort();
            // showTargetlist();
        }
コード例 #4
0
 public void refreshList()
 {
     TargetList.RemoveAll(isDeadandNoCombat);
     CleanMainTargetList();
     HealList.RemoveAll(FullLife);
 }