… | |
… | |
2094 | case ARROW: |
2094 | case ARROW: |
2095 | /* bad bug: monster throw a object, make a step forwards, step on object , |
2095 | /* bad bug: monster throw a object, make a step forwards, step on object , |
2096 | * trigger this here and get hit by own missile - and will be own enemy. |
2096 | * trigger this here and get hit by own missile - and will be own enemy. |
2097 | * Victim then is his own enemy and will start to kill herself (this is |
2097 | * Victim then is his own enemy and will start to kill herself (this is |
2098 | * removed) but we have not synced victim and his missile. To avoid senseless |
2098 | * removed) but we have not synced victim and his missile. To avoid senseless |
2099 | * action, we avoid hits here |
2099 | * action, we avoid hits here |
2100 | */ |
2100 | */ |
2101 | if ((victim->flag [FLAG_ALIVE] && trap->has_active_speed ()) |
2101 | if ((victim->flag [FLAG_ALIVE] && trap->has_active_speed ()) |
2102 | && trap->owner != victim) |
2102 | && trap->owner != victim) |
2103 | hit_with_arrow (trap, victim); |
2103 | hit_with_arrow (trap, victim); |
2104 | break; |
2104 | break; |