Apply a wielded bullwhip with fire-command

This commit is contained in:
Pasi Kallinen
2022-01-06 17:12:30 +02:00
parent 5b02ad521d
commit a77e1602f1
3 changed files with 5 additions and 2 deletions

View File

@@ -451,6 +451,9 @@ dofire(void)
/* if we're wielding a polearm, apply it */
if (uwep && is_pole(uwep))
return use_pole(uwep, TRUE);
/* if we're wielding a bullwhip, apply it */
else if (uwep && uwep->otyp == BULLWHIP)
return use_whip(uwep);
else if (iflags.fireassist
&& uswapwep && is_pole(uswapwep)
&& !(uswapwep->cursed && uswapwep->bknown)) {