Beispiel #1
0
            protected override void OnTick()
            {
                if (m_Owner.Deleted)
                {
                    Stop();
                    return;
                }

                foreach (Mobile m in m_Owner.GetMobilesInRange(3))
                {
                    if (m != m_Owner && m.IsPlayer && m.Hidden && m_Owner.CanBeHarmful(m) && m.AccessLevel == AccessLevel.Player)
                    {
                        m.Hidden = false;
                    }
                }
            }
Beispiel #2
0
            protected override void OnTick()
            {
                if (m_Owner.Deleted)
                {
                    Stop();
                    return;
                }

                IPooledEnumerable eable = m_Owner.GetMobilesInRange(3);

                foreach (Mobile m in eable)
                {
                    if (m != m_Owner && m.Player && m.Hidden && m_Owner.CanBeHarmful(m) && m.IsPlayer())
                    {
                        m.Hidden = false;
                    }
                }
                eable.Free();
            }