version 1.67 | | version 1.68 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.67 2001/12/03 07:51:46 mwedel Exp $"; | | * "$Id: spell_effect.c,v 1.68 2002/01/01 03:56:23 mwedel Exp $"; |
*/ | | */ |
| | |
| | |
| | |
return; | | return; |
at = find_archetype("splint"); | | at = find_archetype("splint"); |
for(env=op;env->env!=NULL;env=env->env); | | for(env=op;env->env!=NULL;env=env->env); |
| | |
if (op->env) { | | if (op->env) { |
if (env->map == NULL) | | if (env->map == NULL) |
return; | | return; |
if (env->type==PLAYER) drop(env,op); | | |
else { | | if (env->type == PLAYER) |
| | esrv_del_item(env->contr, op->count); |
| | |
remove_ob(op); | | remove_ob(op); |
| | op->x = env->x; |
| | op->y = env->y; |
if ((op = insert_ob_in_map (op, env->map, op,0)) == NULL) | | if ((op = insert_ob_in_map (op, env->map, op,0)) == NULL) |
return; | | return; |
} | | } |
} | | |
if (at) | | if (at) |
for(i=1;i<9;i++) | | for(i=1;i<9;i++) |
fire_arch(op,op,i,at,0,0); | | fire_arch(op,op,i,at,0,0); |
| | |
explode_object(op); | | explode_object(op); |
} | | } |
| | |