version 1.34 | | version 1.35 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.34 2006/03/14 07:44:16 mwedel Exp $"; | | * "$Id: spell_attack.c,v 1.35 2006/04/06 21:18:36 tchize Exp $"; |
*/ | | */ |
| | |
| | |
| | |
if(op->path_denied&PATH_LIGHT) | | if(op->path_denied&PATH_LIGHT) |
return 0; | | return 0; |
| | |
tmp=get_archetype(FORCE_NAME); | | tmp=create_archetype(FORCE_NAME); |
tmp->speed = 0.01; | | tmp->speed = 0.01; |
tmp->stats.food = time; | | tmp->stats.food = time; |
SET_FLAG(tmp, FLAG_IS_USED_UP); | | SET_FLAG(tmp, FLAG_IS_USED_UP); |
| | |
} | | } |
| | |
if(force==NULL) { | | if(force==NULL) { |
force=get_archetype(FORCE_NAME); | | force=create_archetype(FORCE_NAME); |
force->subtype = FORCE_CHANGE_ABILITY; | | force->subtype = FORCE_CHANGE_ABILITY; |
free_string(force->name); | | free_string(force->name); |
if (spell_ob->race) | | if (spell_ob->race) |
| | |
| | |
if (!spell->other_arch) return 0; | | if (!spell->other_arch) return 0; |
| | |
tmp=get_archetype(SWARM_SPELL); | | tmp=create_archetype(SWARM_SPELL); |
tmp->x=op->x; | | tmp->x=op->x; |
tmp->y=op->y; | | tmp->y=op->y; |
set_owner(tmp,op); /* needed so that if swarm elements kill, caster gets xp.*/ | | set_owner(tmp,op); /* needed so that if swarm elements kill, caster gets xp.*/ |
| | |
new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name); | | new_draw_info_format(NDI_UNIQUE, 0, op, "You inflict %s on %s!",disease->name,walk->name); |
| | |
free_object(disease); /* don't need this one anymore */ | | free_object(disease); /* don't need this one anymore */ |
flash=get_archetype(ARCH_DETECT_MAGIC); | | flash=create_archetype(ARCH_DETECT_MAGIC); |
flash->x = x; | | flash->x = x; |
flash->y = y; | | flash->y = y; |
flash->map = walk->map; | | flash->map = walk->map; |