Commit 5bf831c 1 parent ceeb98b commit 5bf831c Copy full SHA for 5bf831c
File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -4002,4 +4002,5 @@ The following changes to date are:
4002
4002
- Some more Caveperson role improvements
4003
4003
- Adjust the artifact Keolewa shock damage so it's better than a club
4004
4004
with the lightning object property
4005
+ - Fix: Harbinger was not protecting worn armor from acid damage
4005
4006
Original file line number Diff line number Diff line change @@ -40,6 +40,18 @@ struct monst *mdef;
40
40
int hurt ;
41
41
{
42
42
struct obj * target ;
43
+ boolean youdefend ;
44
+
45
+ if (!mdef )
46
+ return ;
47
+
48
+ youdefend = (mdef == & youmonst );
49
+
50
+ /* wielding Harbinger protects worn armor */
51
+ if (youdefend ? wielding_artifact (ART_HARBINGER )
52
+ : (MON_WEP (mdef )
53
+ && MON_WEP (mdef )-> oartifact == ART_HARBINGER ))
54
+ return ;
43
55
44
56
/* What the following code does: it keeps looping until it
45
57
* finds a target for the rust monster.
You can’t perform that action at this time.
0 commit comments