Check inventory protection only when hero is carrying it

TODO and better fix would be to have similar check for
monster inventory.
This commit is contained in:
Pasi Kallinen
2024-02-21 11:28:46 +02:00
parent d42efcd04f
commit c7e2ebe83c

View File

@@ -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) {