Exemple #1
0
 private static void ClearCastable()
 {
     DeadAllies.Clear();
     CastableTanks.Clear();
     CastableHealers.Clear();
     CastableDps.Clear();
     CastableAlliesWithin30.Clear();
     CastableAlliesWithin25.Clear();
     CastableAlliesWithin20.Clear();
     CastableAlliesWithin15.Clear();
     CastableAlliesWithin12.Clear();
     CastableAlliesWithin10.Clear();
 }
Exemple #2
0
        private static void AddAllyToCastable(Character ally)
        {
            if (ally.CurrentHealth <= 0 || ally.IsDead)
            {
                DeadAllies.Add(ally);
                return;
            }

            if (ally.IsTank())
            {
                CastableTanks.Add(ally);
            }
            if (ally.IsHealer())
            {
                CastableHealers.Add(ally);
            }
            if (ally.IsDps())
            {
                CastableDps.Add(ally);
            }

            var distance = ally.Distance(Core.Me);

            if (distance <= 30)
            {
                CastableAlliesWithin30.Add(ally);
            }
            if (distance <= 25)
            {
                CastableAlliesWithin25.Add(ally);
            }
            if (distance <= 20)
            {
                CastableAlliesWithin20.Add(ally);
            }
            if (distance <= 15)
            {
                CastableAlliesWithin15.Add(ally);
            }
            if (distance <= 12)
            {
                CastableAlliesWithin12.Add(ally);
            }
            if (distance <= 10)
            {
                CastableAlliesWithin10.Add(ally);
            }
        }