Allow dissolving iron bars with potion of acid
Force-fight iron bars with wielded potion of acid to dissolve them This change comes via UnNetHack by Patric Mueller.
This commit is contained in:
@@ -3103,6 +3103,7 @@ struct obj **pobj; /* object tossed/used, set to NULL
|
||||
/* iron bars will block anything big enough */
|
||||
if ((weapon == THROWN_WEAPON || weapon == KICKED_WEAPON)
|
||||
&& typ == IRONBARS && hits_bars(pobj, x - ddx, y - ddy,
|
||||
bhitpos.x, bhitpos.y,
|
||||
point_blank ? 0 : !rn2(5), 1)) {
|
||||
/* caveat: obj might now be null... */
|
||||
obj = *pobj;
|
||||
|
||||
Reference in New Issue
Block a user