fix #U782 - undead turning in a shop [trunk only]
Reported last December by <email deleted>. Using
a wand or spell of undead turning inside a shop used up corpses without
checking whether they were owned by the shop. Although the report didn't
mention it, using stone-to-flesh on statues had the same problem.
I'm not completely satisfied by some aspects of this code, but if I
don't commit what I've got now I probably never would. My original notes
are lost; I thought that there were some additional fixes present, but
looking at these diffs I don't see anything else significant enough to
warrant mention in the fixes file.
This commit is contained in:
@@ -2422,7 +2422,7 @@ E boolean FDECL(get_obj_location, (struct obj *,xchar *,xchar *,int));
|
||||
E boolean FDECL(get_mon_location, (struct monst *,xchar *,xchar *,int));
|
||||
E struct monst *FDECL(get_container_location, (struct obj *obj, int *, int *));
|
||||
E struct monst *FDECL(montraits, (struct obj *,coord *));
|
||||
E struct monst *FDECL(revive, (struct obj *));
|
||||
E struct monst *FDECL(revive, (struct obj *,BOOLEAN_P));
|
||||
E int FDECL(unturn_dead, (struct monst *));
|
||||
E void FDECL(cancel_item, (struct obj *));
|
||||
E boolean FDECL(drain_item, (struct obj *));
|
||||
|
||||
Reference in New Issue
Block a user