Пример #1
0
 // A check to see if the seen mobile meets all the conditions for identifying criminal activity.
 public static bool VisionCheck(Mobile m, BaseCreature s, int range)
 {
     if ((m.Combatant != s) && s.CanSee(m) && s.InLOS(m) && (m.AccessLevel < AccessLevel.Counselor))
     {
         if (m.Hidden)
             return (s.InFieldOfVision(m) && m.InRange(s, range));
         else
             return m.InRange(s, range);
     }
     else
         return false;
 }