Resource icon

Guardregion.cs change

Find MakeGuard

and change it to look like this.

Only change I made was this IPooledEnumerable

Code:
        public override void MakeGuard(Mobile focus)
        {
            BaseGuard useGuard = null;

            IPooledEnumerable eable = focus.GetMobilesInRange(8);
            foreach (Mobile m in eable)
            {
                if (m is BaseGuard)
                {
                    BaseGuard g = (BaseGuard)m;

                    if (g.Focus == null) // idling
                    {
                        useGuard = g;
                        break;
                    }
                }
            }
            eable.Free();

            if (useGuard == null)
            {
                m_GuardParams[0] = focus;

                try
                {
                    Activator.CreateInstance(m_GuardType, m_GuardParams);
                }
                catch
                { }
            }
            else
            {
                useGuard.Focus = focus;
            }
        }
Author
dragon slayer2
Views
243
First release
Last update
Rating
0.00 star(s) 0 ratings