Reproduction steps: Find two different monsters and put both on targeting. Set one of them to avoid waves or beams, put the other to attack only if trapped. Do not add any avoidance to the "only if trapped" monster.

Observed behavior: The bot runs around like a retard trying to stay away from the "only if trapped" monster while at the same time staying on the diagonal of the desired target.

Expected behavior: The bot should stay on the diagonal of the targeted monster while not giving a fuck about the "only if trapped" monster. In fact, this is how it should fight even if the second monster isn't on "only if trapped" as long as it doesn't have any avoidance.

Since any non-bugged script must have all encounterable monsters on the targeting list this means that something as silly as a rat can cause the bot to do the retard dance.