more follow-up related to #1320
This commit is contained in:
+5
-2
@@ -2895,12 +2895,15 @@ better_not_take_that_off(struct obj *otmp)
|
||||
struct obj *corpse = carrying_stoning_corpse();
|
||||
char buf[BUFSZ];
|
||||
|
||||
/* u_safe_from_fatal_corpse() with 0x4e instead of 0x6
|
||||
/* u_safe_from_fatal_corpse() with
|
||||
(st_corpse | st_petrifies | st_resists) instead of
|
||||
(st_corpse | st_petrifies)
|
||||
would also check for no stoning resistance before
|
||||
bothering to prompt, but losing stoning resistance
|
||||
later, without the gloves on could prove dangerous,
|
||||
so we won't factor that in */
|
||||
if (corpse && !u_safe_from_fatal_corpse(corpse, 0x6)) {
|
||||
if (corpse
|
||||
&& !u_safe_from_fatal_corpse(corpse, st_corpse | st_petrifies)) {
|
||||
Snprintf(buf, sizeof buf,
|
||||
"Take off your %s despite carrying a dead %s?",
|
||||
gloves_simple_name(otmp), obj_pmname(corpse));
|
||||
|
||||
Reference in New Issue
Block a user