Before the FirstMidvictory, the following situation may happen: player 1 is registered for the siege as an attacker. Player 2 is not registered for the siege. Player 1 cannot hit player 2, in turn player 2 can hit player 1. This is wrong. Players should be able to beat each other. However, if player 3 is also registered for the siege, player 1 and player 3 should not beat each other until an intermediate victory - now its work.
I haven't figured out all the functions yet, so I can't offer a solution now. But it is clear to me that we need a check on a neutral player and everyone should beat him. Thank you so much for your help!