version 1.5 | | version 1.6 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.5 2004/02/23 06:06:30 mwedel Exp $"; | | * "$Id: spell_attack.c,v 1.6 2004/02/24 05:43:58 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
tmp->y=y; | | tmp->y=y; |
| | |
tmp->duration = op->duration + 1; | | tmp->duration = op->duration + 1; |
| | |
| | /* Use for spell tracking - see ok_to_put_more() */ |
| | tmp->stats.maxhp = op->stats.maxhp; |
insert_ob_in_map(tmp,op->map,op,0); | | insert_ob_in_map(tmp,op->map,op,0); |
if (tmp->other_arch) cone_drop(tmp); | | if (tmp->other_arch) cone_drop(tmp); |
} | | } |
| | |
spell->other_arch->name); | | spell->other_arch->name); |
} | | } |
insert_ob_in_map(tmp,op->map,op,0); | | insert_ob_in_map(tmp,op->map,op,0); |
| | |
| | /* This is used for tracking spells so that one effect doesn't hit |
| | * a single space too many times. |
| | */ |
| | tmp->stats.maxhp = tmp->count; |
| | |
if(tmp->other_arch) cone_drop(tmp); | | if(tmp->other_arch) cone_drop(tmp); |
} | | } |
return success; | | return success; |