fireproof containers catching fire in lava

Recently reported to the list, a fireproof container dropped in lava would
catch fire and burn.  Add the missing check; this looks an oversight when
the idea of fireproof was added, since other fireproof objects get handled
later in the cascading if().
This commit is contained in:
cohrs
2006-09-24 23:58:39 +00:00
parent 7272de6881
commit 01ce182b02
2 changed files with 3 additions and 1 deletions

View File

@@ -2811,7 +2811,8 @@ xchar x, y;
chance = 20;
break;
}
if (!force && (Luck + 5) > rn2(chance))
if ((!force && (Luck + 5) > rn2(chance)) ||
(is_flammable(obj) && obj->oerodeproof))
continue;
/* Container is burnt up - dump contents out */
if (in_sight) pline("%s catches fire and burns.", Yname2(obj));