… | |
… | |
237 | /* Prevent recursion */ |
237 | /* Prevent recursion */ |
238 | if (trap->stats.hp <= 0) |
238 | if (trap->stats.hp <= 0) |
239 | return; |
239 | return; |
240 | |
240 | |
241 | if (QUERY_FLAG (trap, FLAG_IS_LINKED)) |
241 | if (QUERY_FLAG (trap, FLAG_IS_LINKED)) |
242 | use_trigger (trap); |
242 | use_trigger (trap, victim); |
243 | |
243 | |
244 | /* Only living objects can trigger runes that don't cast spells, as |
244 | /* Only living objects can trigger runes that don't cast spells, as |
245 | * doing direct damage to a non-living object doesn't work anyway. |
245 | * doing direct damage to a non-living object doesn't work anyway. |
246 | * Typical example is an arrow attacking a door. |
246 | * Typical example is an arrow attacking a door. |
247 | */ |
247 | */ |
… | |
… | |
409 | { |
409 | { |
410 | if (where == NULL) |
410 | if (where == NULL) |
411 | return 0; |
411 | return 0; |
412 | |
412 | |
413 | object *tmp = get_archetype ("runedet"); |
413 | object *tmp = get_archetype ("runedet"); |
414 | tmp->face = GET_ANIMATION (trap, 0); |
414 | tmp->face = trap->get_anim_frame (0); |
415 | tmp->insert_at (where, 0); |
415 | tmp->insert_at (where, 0); |
416 | |
416 | |
417 | return 1; |
417 | return 1; |
418 | } |
418 | } |
419 | |
419 | |