ArcAnnihilation.Objects.Fountains.GetAllyFountain C# (CSharp) Method

GetAllyFountain() public static method

public static GetAllyFountain ( ) : Unit
return Unit
            public static Unit GetAllyFountain()
            {
                if (_ally == null || !_ally.IsValid)
                {
                    _ally = ObjectManager.GetEntities<Unit>()
                        .FirstOrDefault(x => x.Team == ObjectManager.LocalHero.Team && x.ClassID == ClassID.CDOTA_Unit_Fountain);
                }
                return _ally;
            }