version 1.45 | | version 1.46 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.45 2001/03/19 07:58:10 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.46 2001/03/21 06:03:57 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
int i; | | int i; |
| | |
/* if dir = 99 op defaults to tmp, eat_special_food() requires this. */ | | /* if dir = 99 op defaults to tmp, eat_special_food() requires this. */ |
if(dir!=99) | | if(dir!=99) { |
| | if (spell_type == SP_CURSE) { |
| | tmp=get_pointed_target(op, (dir==0)?op->direction:dir); |
| | if (!tmp) { |
| | new_draw_info(NDI_UNIQUE, 0, op, "There is no one in that direction to curse."); |
| | } |
| | } else { |
tmp=find_target_for_friendly_spell(op,dir); | | tmp=find_target_for_friendly_spell(op,dir); |
| | } |
| | } |
| | |
if(tmp==NULL) return 0; | | if(tmp==NULL) return 0; |
| | |