version 1.138 | | version 1.139 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.138 2005/09/17 23:31:49 qal21 Exp $"; | | * "$Id: spell_effect.c,v 1.139 2005/09/27 17:48:40 akirschbaum Exp $"; |
*/ | | */ |
| | |
| | |
| | |
int ncharges; | | int ncharges; |
| | |
wand = find_marked_object(op); | | wand = find_marked_object(op); |
if(wand == NULL) { | | if(wand == NULL || wand->type != WAND) { |
new_draw_info(NDI_UNIQUE, 0, op, "You need to mark the wand you want to recharge."); | | new_draw_info(NDI_UNIQUE, 0, op, "You need to mark the wand you want to recharge."); |
return 0; | | return 0; |
} | | } |