Amulet of unchanging cannot be polymorphed

This commit is contained in:
Pasi Kallinen
2023-12-19 17:13:52 +02:00
parent 99db2433d6
commit 3c94b276a2
2 changed files with 3 additions and 1 deletions

View File

@@ -413,7 +413,8 @@ struct obj {
#define unpolyable(o) ((o)->otyp == WAN_POLYMORPH \
|| (o)->otyp == SPE_POLYMORPH \
|| (o)->otyp == POT_POLYMORPH)
|| (o)->otyp == POT_POLYMORPH \
|| (o)->otyp == AMULET_OF_UNCHANGING)
/* achievement tracking; 3.6.x did this differently */
#define is_mines_prize(o) ((o)->o_id == gc.context.achieveo.mines_prize_oid)