version 1.135 | | version 1.136 |
---|
| | |
/* | | /* |
* static char *rcsid_player_c = | | * static char *rcsid_player_c = |
* "$Id: player.c,v 1.135 2003/10/08 05:43:22 mwedel Exp $"; | | * "$Id: player.c,v 1.136 2003/10/14 06:54:48 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* everything seems okay - now bring on the gift: */ | | /* everything seems okay - now bring on the gift: */ |
item = &(tr->item->clone); | | item = &(tr->item->clone); |
| | |
| | if (item->type == SPELL) { |
| | if (check_spell_known (who, item->name)) |
| | return; |
| | |
| | new_draw_info_format(NDI_UNIQUE|NDI_BLUE, 0, who, "You gained the ability of %s", item->inv->name); |
| | do_learn_spell (who, item, 0); |
| | return; |
| | } |
| | |
/* grant direct spell */ | | /* grant direct spell */ |
if (item->type == SPELLBOOK) { | | if (item->type == SPELLBOOK) { |
| | if (!item->inv) { |
| | LOG(llevDebug,"dragon_ability_gain: Broken spellbook %s\n", |
| | item->name); |
| | return; |
| | } |
if (check_spell_known (who, item->inv->name)) | | if (check_spell_known (who, item->inv->name)) |
return; | | return; |
if (item->invisible) { | | if (item->invisible) { |