Skip to content

Commit 53ddb0b

Browse files
committed
Make sure Draugr monk class gift isn't a spellbook.
1 parent f6b54bd commit 53ddb0b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3454,4 +3454,5 @@ The following changes to date are:
34543454
- Switch from impossible to raw_print for 'Cannot open record file!'
34553455
errors
34563456
- Switch status from work in progress to beta
3457+
- Make sure Draugr monk prayer gift isn't a spellbook
34573458

src/pray.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,10 @@ gcrownu()
844844
} else if (Role_if(PM_MONK) && (!uwep || !uwep->oartifact)
845845
&& !carrying(SPE_RESTORE_ABILITY)) {
846846
/* monks rarely wield a weapon */
847-
class_gift = SPE_RESTORE_ABILITY;
847+
if (!Race_if(PM_DRAUGR))
848+
class_gift = SPE_RESTORE_ABILITY;
849+
else
850+
class_gift = GAUNTLETS_OF_PROTECTION;
848851
}
849852

850853
obj = ok_wep(uwep) ? uwep : 0;

0 commit comments

Comments
 (0)