Bug: Mobs will ignore nomob flag in rooms when moving
Danger: Low - Annoyance factor. Can be worked around with EX_NOMOB flag.
Found by: Dragona
Fixed by: Remcon
---
act_move.c, move_char
Locate:
if( IS_SET( pexit->exit_info, EX_NOMOB ) && IS_NPC( ch ) )
{
act( AT_PLAIN, "Mobs can't enter there.", ch, NULL, NULL, TO_CHAR );
return rNONE;
}
Below it, add:
if( IS_SET( to_room->room_flags, ROOM_NO_MOB ) && IS_NPC( ch ) )
{
act( AT_PLAIN, "Mobs can't enter there.", ch, NULL, NULL, TO_CHAR );
return rNONE;
}
This situation will only affect a mob which has been forced by an immortal, or ordered by its master to use a directional command, such as north or east, etc. May also be possible for a prog to direct a mob to violate the flag. Mobs will not wander on their own into rooms with a ROOM_NO_MOB flag.