Light-spell is clerical, if playing a priest

Ideally the spell adjustment should be in o_init, but by that time
hero's role has not yet been set.
This commit is contained in:
Pasi Kallinen
2026-02-03 12:07:08 +02:00
parent deec8317ce
commit 27adb7c71d
2 changed files with 4 additions and 0 deletions

View File

@@ -2084,6 +2084,9 @@ role_init(void)
/* 0 or 1; no gods are neuter, nor is gender randomized */
svq.quest_status.godgend = !strcmpi(align_gtitle(alignmnt), "goddess");
if (Role_if(PM_CLERIC))
objects[SPE_LIGHT].oc_skill = P_CLERIC_SPELL;
#if 0
/*
* Disable this fixup so that mons[] can be const. The only