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

@@ -1333,6 +1333,7 @@ HP regeneration formula has changed, primarily to be less fast in the endgame
riding negates stealth unless the steed is flying
previous hero rising as undead in bones retains intrinsics
level temperature affects monster generation
amulet of unchanging cannot be polymorphed
Fixes to 3.7.0-x General Problems Exposed Via git Repository

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)