From c7e2ebe83cea64223dffc48729212a903e9b189a Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 21 Feb 2024 11:28:46 +0200 Subject: [PATCH] Check inventory protection only when hero is carrying it TODO and better fix would be to have similar check for monster inventory. --- src/zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zap.c b/src/zap.c index f740c3751..94b0a960f 100644 --- a/src/zap.c +++ b/src/zap.c @@ -5622,7 +5622,7 @@ maybe_destroy_item( quan = 0L; /* external worn item protects inventory? */ - if (inventory_resistance_check(dmgtyp)) + if (u_carry && inventory_resistance_check(dmgtyp)) return 0; switch (dmgtyp) {