# HG changeset patch
# User elwin
# Date 1291761093 0
# Node ID 7612f48a38adb432b7b8d66d0bfe9bc462896b86
# Parent  24e6beb9e7aa0f09581970b9949f92d55b3789f8
srogue: prevent aquiring unlimited scrolls of aquirement.

diff -r 24e6beb9e7aa -r 7612f48a38ad srogue/wizard.c
--- a/srogue/wizard.c	Tue Dec 07 16:46:07 2010 +0000
+++ b/srogue/wizard.c	Tue Dec 07 22:31:33 2010 +0000
@@ -231,6 +231,10 @@
 		else
 			resoflg(obj, ISCURSED);
 	}
+	/* Don't let scrolls of aquirement give multiple scrolls of 
+	 * aquirement, or you will be able to scum for ANYTHING. */
+	if (!wizard && wh == SCROLL && obj->o_which == S_MAKEIT)
+		obj->o_count = 1;
 	mpos = 0;
 	if (fscr)
 		whatis(item);			/* identify for aquirement scroll */