forked from NetHack/NetHack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: undoing monsters' permablindness by accident
Monsters can become permanently blind (in very narrow circumstances -- I think limited only to a very short-range camera flash), in which case they have both mon->mblinded and mon->mcansee set to 0. Such permanently blinded monsters can counterintuitively regain their sight by being blinded a second time from a different source: for example, by being hit with a cream pie. That second blinding will increase mon->mblinded (which functions as a blindness timeout) by some amount, and when it runs out the monster will regain its sight. Try to make sure that doesn't happen by skipping any blinding attacks if the monster has already been permanently blinded.
- Loading branch information
Showing
3 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters