Expand safe_wait to deadly status afflictions

Searching or waiting with safe_wait on will now consider
sliming, stoning, or deadly illness to be hazardous and prevent
the command.
This commit is contained in:
Pasi Kallinen
2022-12-18 00:35:41 +02:00
parent 60a328bc2c
commit d7e90fbae2
4 changed files with 28 additions and 9 deletions

View File

@@ -1948,7 +1948,7 @@ dosearch0(int aflag) /* intrinsic autosearch vs explicit searching */
int
dosearch(void)
{
if (cmd_safety_prevention("another search",
if (cmd_safety_prevention("Searching", "another search",
"You already found a monster.",
&ga.already_found_flag))
return ECMD_OK;