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:
@@ -5622,7 +5622,7 @@ maybe_destroy_item(
|
|||||||
quan = 0L;
|
quan = 0L;
|
||||||
|
|
||||||
/* external worn item protects inventory? */
|
/* external worn item protects inventory? */
|
||||||
if (inventory_resistance_check(dmgtyp))
|
if (u_carry && inventory_resistance_check(dmgtyp))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
switch (dmgtyp) {
|
switch (dmgtyp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user