… | |
… | |
271 | if (rv.distance > 1) |
271 | if (rv.distance > 1) |
272 | return; |
272 | return; |
273 | |
273 | |
274 | trap_show (trap, env); |
274 | trap_show (trap, env); |
275 | |
275 | |
|
|
276 | if (victim->type == PLAYER) // only count players as enemies |
|
|
277 | trap->enemy = victim; // set the victim as the traps enemy, so that summoned |
|
|
278 | // creatures know who to attack. |
|
|
279 | |
276 | /* Only if it is a spell do we proceed here */ |
280 | /* Only if it is a spell do we proceed here */ |
277 | if ((trap->inv && trap->inv->type == SPELL) || (trap->other_arch && trap->other_arch->clone.type == SPELL)) |
281 | if ((trap->inv && trap->inv->type == SPELL) || (trap->other_arch && trap->other_arch->clone.type == SPELL)) |
278 | { |
282 | { |
279 | |
283 | |
280 | if (trap->destroyed ()) |
284 | if (trap->destroyed ()) |