version 1.75 | | version 1.76 |
---|
| | |
/* | | /* |
* static char *rcsid_skills_c = | | * static char *rcsid_skills_c = |
* "$Id: skills.c,v 1.75 2006/06/29 06:09:23 mwedel Exp $"; | | * "$Id: skills.c,v 1.76 2006/07/28 20:23:30 gros Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
/* this is a sanity check */ | | /* this is a sanity check */ |
if (scroll->type!=SCROLL) { | | if (scroll->type!=SCROLL) { |
new_draw_info(NDI_UNIQUE,0,pl,"A spell can only be inscribed into a scroll!"); | | new_draw_info(NDI_UNIQUE,0,pl, |
| | "A spell can only be inscribed into a scroll!"); |
return 0; | | return 0; |
} | | } |
| | |
| | |
chosen_spell->name); | | chosen_spell->name); |
return 0; | | return 0; |
} | | } |
| | /* Prevent an abuse: write a spell you're denied with, then cast it from the |
| | * written scroll - gros, 28th July 2006 */ |
| | if (chosen_spell->path_attuned & pl->path_denied) |
| | { |
| | new_draw_info_format(NDI_UNIQUE,0,pl, |
| | "The simple idea of writing a scroll of %s makes you sick !", |
| | query_name(chosen_spell)); |
| | return 0; |
| | } |
| | |
/* if there is a spell already on the scroll then player could easily | | /* if there is a spell already on the scroll then player could easily |
* accidently read it while trying to write the new one. give player | | * accidently read it while trying to write the new one. give player |