version 1.48 | | version 1.49 |
---|
| | |
/* | | /* |
* static char *rcsid_rune_c = | | * static char *rcsid_rune_c = |
* "$Id: rune.c,v 1.48 2006/06/26 07:31:00 mwedel Exp $"; | | * "$Id: rune.c,v 1.49 2006/06/29 06:09:23 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
(trap->other_arch && trap->other_arch->clone.type == SPELL)) { | | (trap->other_arch && trap->other_arch->clone.type == SPELL)) { |
object *spell; | | object *spell; |
| | |
if (trap->direction) | | /* This is necessary if the trap is inside something else */ |
rv.direction = trap->direction; | | remove_ob(trap); |
| | trap->x=victim->x; |
| | trap->y=victim->y; |
| | insert_ob_in_map(trap,victim->map,trap,0); |
| | |
| | if (was_destroyed (trap, trap_tag)) |
| | return; |
| | |
for(i = 0; i < MAX(1, trap->stats.maxhp); i++) { | | for(i = 0; i < MAX(1, trap->stats.maxhp); i++) { |
if (trap->inv) | | if (trap->inv) |
cast_spell(env,trap,rv.direction,trap->inv,NULL); | | cast_spell(trap,trap,trap->direction,trap->inv,NULL); |
else { | | else { |
spell = arch_to_object(trap->other_arch); | | spell = arch_to_object(trap->other_arch); |
cast_spell(env,trap,rv.direction,spell,NULL); | | cast_spell(trap,trap,trap->direction,spell,NULL); |
free_object(spell); | | free_object(spell); |
} | | } |
} | | } |