Blob Blame History Raw
diff -ur nazghul-0.5.3-orig/src/cmd.c nazghul-0.5.3/src/cmd.c
--- nazghul-0.5.3-orig/src/cmd.c	2006-02-04 09:46:23.000000000 -0600
+++ nazghul-0.5.3/src/cmd.c	2006-06-08 08:45:59.425233976 -0500
@@ -1020,6 +1020,16 @@
         info.x = place_wrap_x(info.place, player_party->getX() + info.dx);
         info.y = place_wrap_y(info.place, player_party->getY() + info.dy);
         info.npc_party = place_get_Party(info.place, info.x, info.y);
+
+	if (info.place->wilderness) {
+		// Only allow adjacent attacks in wilderness
+		if (info.dx && info.dy)
+		{
+			cmdwin_print("-adjacent foes only!");
+			return;
+		}
+	}
+
         if (info.npc_party == NULL) {
                 cmdwin_print("-nobody there!");
                 return;