… | |
… | |
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 | */ |