Skip to content

Commit 09a3226

Browse files
Fix: confused enchanting dragon scales
The dtsund-DSM patch made it so that confused enchant armor would polymorph you into a dragon if wearing dragon scales. Between adding the ability to choose which armor piece to enchant, refactoring that addition, and adding code to prevent fooproofing supermaterials, this particular behavior was overridden by a general confused-enchant-armor case. Restore the original dtsund behavior (if the dragon scales are chosen/the scroll is not IDed).
1 parent ac9c767 commit 09a3226

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/evilhack-changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -3325,3 +3325,4 @@ The following changes to date are:
33253325
- Fix: prevent monsters that are carrying the Amulet of Yendor from
33263326
being teleported while in the Sanctum
33273327
- Fix: don't allow tipping a floor container into itself II
3328+
- Fix: confused enchanting dragon scales

src/read.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,8 @@ struct obj *sobj; /* sobj - scroll or fake spellbook for spell */
11411141
exercise(A_STR, !scursed);
11421142
break;
11431143
}
1144-
if (confused) {
1144+
/* dragon scales are handled later and shouldn't/can't become fixed */
1145+
if (confused && !Is_dragon_scales(otmp)) {
11451146
old_erodeproof = (otmp->oerodeproof != 0);
11461147
new_erodeproof = !scursed;
11471148
otmp->oerodeproof = 0; /* for messages */

0 commit comments

Comments
 (0)