Auto_Disable.Program.CheckForModifier C# (CSharp) Метод

CheckForModifier() приватный статический Метод

private static CheckForModifier ( System.Entity t, bool &mustHave ) : string
t System.Entity
mustHave bool
Результат string
        private static string CheckForModifier(Entity t, ref bool mustHave)
        {
            for (var n = 0; n < CounterSpells.Length; n++)
                if (t.ClassID == CounterSpells[n].Hero)
                {
                    if (CounterSpells[n].Modifer == "") continue;
                    mustHave = true;
                    return CounterSpells[n].Modifer;
                }
            return "";
        }