Add #wizcast command to cast any spell

Wizard-mode command to cast any spell without checks that would
prevent casting, and with no energy use.

Mainly to allow the fuzzer to exercise the spell code paths.
This commit is contained in:
Pasi Kallinen
2022-09-06 22:49:43 +03:00
parent 4f2996758b
commit e952f67f2c
9 changed files with 95 additions and 33 deletions

View File

@@ -2749,6 +2749,8 @@ struct ext_func_tab extcmdlist[] = {
wiz_debug_cmd_bury, IFBURIED | AUTOCOMPLETE | WIZMODECMD,
NULL },
#endif
{ '\0', "wizcast", "cast any spell",
dowizcast, IFBURIED | WIZMODECMD, NULL },
{ C('e'), "wizdetect", "reveal hidden things within a small radius",
wiz_detect, IFBURIED | WIZMODECMD, NULL },
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) || defined(DEBUG)