Auto-translated
It doesn't help; the problem remains the same – the task isn't failing, no one is losing, and the console isn't showing any errors.
Try adding some "print" statements to see what the console shows.
...And the number 1, by the way, is because the task fails for the first player.
...The conditions: there's an elven town belonging to an elf (Player 3). If Player 2 captures it, the task fails, and Player 2 loses.
There weren't any such conditions, so I considered it an error, but it's not really important.
...You need to be more careful with variable names.