Skip to content

Commit

Permalink
Fix for letting monsters light torches.
Browse files Browse the repository at this point in the history
Missed a check if the torch was already lit.
  • Loading branch information
elunna committed Sep 26, 2023
1 parent 6244ebc commit c0f79f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/weapon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ register struct monst *mon;
/* already wielding it */
if (is_lightsaber(obj))
mon_ignite_lightsaber(obj, mon);
if (obj->otyp == TORCH)
if (obj->otyp == TORCH && !obj->lamplit)
begin_burn(obj, FALSE);
mon->weapon_check = NEED_WEAPON;
return 0;
Expand Down

0 comments on commit c0f79f2

Please sign in to comment.