示例#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();
        }