Bug: do_exits does not check darkness before displaying the exits
Danger: Low - Minor game exploit.
Discovered in: AFKMud 1.77
Found by: Banner
Fixed by: Banner
if( !check_blind( ch ) )
Below that, add:
if( !IS_NPC( ch )
&& !IS_PLR_FLAG( ch, PLR_HOLYLIGHT )
&& !IS_AFFECTED( ch, AFF_TRUESIGHT ) && !IS_AFFECTED( ch, AFF_INFRARED ) && room_is_dark( ch->in_room, ch ) )
set_char_color( AT_DGREY, ch );
send_to_char( "It is pitch black ... \r\n", ch );
The exits command should be taking into account weather or not the player can see the exits based on darkness.