Пример #1
0
        private static void SortMinions(this Obj_AI_Minion minion)
        {
            if (!minion.IsValidEntity() || minion.Team.Equals(GameObjectTeam.Unknown))
            {
                return;
            }

            if (minion.Team.Equals(GameObjectTeam.Neutral))
            {
                NeutralMinions.Add(minion);
            }
            else if (minion.Team.Equals(GameObjectTeam.Chaos) || minion.Team.Equals(GameObjectTeam.Order))
            {
                if (minion.Team == ObjectManager.Me.Team)
                {
                    AllyMinions.Add(minion);
                }
                else
                {
                    EnemyMinions.Add(minion);
                }
            }
            else
            {
                Minions.Add(minion);
            }
        }