Skip to content

Commit

Permalink
Fix: Summon cards were merging incorrectly with other cards. This was…
Browse files Browse the repository at this point in the history
… bug was also present in SpliceHack (https://github.com/NullCGT/SpliceHack/issues/232).
  • Loading branch information
elunna committed Nov 15, 2023
1 parent 1f37583 commit 03b0cec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/invent.c
Original file line number Diff line number Diff line change
Expand Up @@ -3972,6 +3972,10 @@ register struct obj *otmp, *obj;
&& (obj->oeaten != otmp->oeaten || obj->orotten != otmp->orotten))
return FALSE;

if (obj->oclass == SCROLL_CLASS
&& (obj->corpsenm != NON_PM && obj->corpsenm != otmp->corpsenm))
return FALSE;

if (obj->dknown != otmp->dknown
|| (obj->bknown != otmp->bknown && !Role_if(PM_PRIEST))
|| obj->oeroded != otmp->oeroded
Expand Down

0 comments on commit 03b0cec

Please sign in to comment.