I just noticed that even when you have gas immunity, encountering a bones file still gives the message "You smell the stench of death."
There should be a check for gas immunity upon entering a bones floor, and if the player is immune to gas, there should either be a different message, or the warning should be removed completely.