Skip to content

Commit 532afd0

Browse files
committed
Fix: charm monster wasn't being handled in spelleffects()
Last December PatR moved a case statement for the spell around to use the blessed taming scroll effect when charm monster cast at Skilled or Expert, but somehow the xNetHack copy of the code deleted the case entirely. The large vanilla merge in March seems like the place this would have happened but I can't find it in the commit diff, nor can I find any notes indicating I intended to change the behavior, so I reset it to vanilla's version of the code.
1 parent 940a038 commit 532afd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/spell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,7 @@ spelleffects(int spell_otyp, boolean atme, boolean force)
15031503
case SPE_CONFUSE_MONSTER:
15041504
case SPE_DETECT_FOOD:
15051505
case SPE_CAUSE_FEAR:
1506+
case SPE_CHARM_MONSTER:
15061507
/* high skill yields effect equivalent to blessed scroll */
15071508
if (role_skill >= P_SKILLED)
15081509
pseudo->blessed = 1;

0 commit comments

Comments
 (0)