Skip to content

Commit

Permalink
Fix: Archons and other non lich monsters could cast call undead.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 12, 2023
1 parent 9d59ea2 commit 857863c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mcastu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1389,11 +1389,9 @@ int spellnum;
if ((!mtmp->iswiz || context.no_of_wizards > 1)
&& (spellnum == MGC_CLONE_WIZ || spellnum == MGC_CALL_UNDEAD))
return TRUE;
/* only lichs can cast call undead */
/* [BarclayII] so can necromancers */
/* only lichs and necromancers can cast call undead */
if (spellnum == MGC_CALL_UNDEAD
&& mtmp->data->mlet != S_LICH
&& mtmp->data != &mons[PM_NECROMANCER])
&& mtmp->data->mlet != S_LICH && mtmp->data != &mons[PM_NECROMANCER])
return TRUE;
/* pools can only be created in certain locations and then only
* rarely unless you're carrying the amulet.
Expand Down Expand Up @@ -1524,6 +1522,10 @@ int spellnum;
|| spellnum == MGC_CALL_UNDEAD)
|| (!mtmp->iswiz && spellnum == MGC_CLONE_WIZ)))
return TRUE;
/* only lichs and necromancers can cast call undead */
if (spellnum == MGC_CALL_UNDEAD
&& mtmp->data->mlet != S_LICH && mtmp->data != &mons[PM_NECROMANCER])
return TRUE;
if ((!mtmp->iswiz || context.no_of_wizards > 1)
&& spellnum == MGC_CLONE_WIZ)
return TRUE;
Expand Down

0 comments on commit 857863c

Please sign in to comment.