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:
@@ -822,7 +822,7 @@ dotele(
|
||||
if (castit) {
|
||||
/* energy cost is deducted in spelleffects() */
|
||||
exercise(A_WIS, TRUE);
|
||||
if ((spelleffects(SPE_TELEPORT_AWAY, TRUE) & ECMD_TIME))
|
||||
if ((spelleffects(SPE_TELEPORT_AWAY, TRUE, FALSE) & ECMD_TIME))
|
||||
return 1;
|
||||
else if (!break_the_rules)
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user