ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/skills.C
(Generate patch)

Comparing deliantra/server/server/skills.C (file contents):
Revision 1.27 by root, Tue Apr 24 12:32:16 2007 UTC vs.
Revision 1.28 by root, Mon Apr 30 04:25:30 2007 UTC

260 /* play_sound("stop! thief!"); kindofthing */ 260 /* play_sound("stop! thief!"); kindofthing */
261 } /* if you weren't 100% successful */ 261 } /* if you weren't 100% successful */
262 return success ? 1 : 0; 262 return success ? 1 : 0;
263} 263}
264 264
265
266int 265int
267steal (object *op, int dir, object *skill) 266steal (object *op, int dir, object *skill)
268{ 267{
269 object *tmp, *next; 268 object *tmp, *next;
270 sint16 x, y; 269 sint16 x, y;
1316 new_draw_info (NDI_UNIQUE, 0, pl, "A spell can only be inscribed into a scroll!"); 1315 new_draw_info (NDI_UNIQUE, 0, pl, "A spell can only be inscribed into a scroll!");
1317 return 0; 1316 return 0;
1318 } 1317 }
1319 1318
1320 /* Check if we are ready to attempt inscription */ 1319 /* Check if we are ready to attempt inscription */
1321 chosen_spell = pl->contr->ranges[range_magic]; 1320 chosen_spell = pl->contr->ranged_ob;
1322 if (!chosen_spell) 1321 if (!chosen_spell || chosen_spell->type != SPELL)
1323 { 1322 {
1324 new_draw_info (NDI_UNIQUE, 0, pl, "You need a spell readied in order to inscribe!"); 1323 new_draw_info (NDI_UNIQUE, 0, pl, "You need a spell readied in order to inscribe!");
1325 return 0; 1324 return 0;
1326 } 1325 }
1327 1326

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines