fix #1727 - offering Rider corpses (trunk only)
The report that killing a Rider on an altar allowed you to sacrifice its corpse was a wizard mode-only phenomenon in 3.4.3 (because you needed to use an altar at some location other than the Astral Plane, hence also needed to use ^G to get the Rider there), so not really a bug. But a post-3.4.3 change has made it possible to offer corpses from the floor on the astral level, unintentionally making it possible to sacrifice Rider corpses. This makdes #offer check specifically for them and trigger their revival if the attempt is made, same as done by pickup.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)pray.c 3.5 2008/01/21 */
|
||||
/* SCCS Id: @(#)pray.c 3.5 2008/10/09 */
|
||||
/* Copyright (c) Benson I. Margulies, Mike Stephenson, Steve Linhart, 1989. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1206,6 +1206,7 @@ dosacrifice()
|
||||
|
||||
/* you're handling this corpse, even if it was killed upon the altar */
|
||||
feel_cockatrice(otmp, TRUE);
|
||||
if (rider_corpse_revival(otmp, FALSE)) return 1;
|
||||
|
||||
if (otmp->corpsenm == PM_ACID_BLOB
|
||||
|| (monstermoves <= peek_at_iced_corpse_age(otmp) + 50)) {
|
||||
|
||||
Reference in New Issue
Block a user