… | |
… | |
276 | if (victim->type == PLAYER) // only count players as enemies |
276 | if (victim->type == PLAYER) // only count players as enemies |
277 | trap->enemy = victim; // set the victim as the traps enemy, so that summoned |
277 | trap->enemy = victim; // set the victim as the traps enemy, so that summoned |
278 | // creatures know who to attack. |
278 | // creatures know who to attack. |
279 | |
279 | |
280 | /* Only if it is a spell do we proceed here */ |
280 | /* Only if it is a spell do we proceed here */ |
281 | 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->type == SPELL)) |
282 | { |
282 | { |
283 | |
283 | |
284 | if (trap->destroyed ()) |
284 | if (trap->destroyed ()) |
285 | return; |
285 | return; |
286 | |
286 | |