Ah, of course. The problem is that the Tinker script you wrote does not test the color of the pieces. So the Lion sees itself in case of igui. The capture matrix does distinquish friendly capture from enemy capture, and normally you would only define a shock on the latter. Of course you could also have the Tinker script test for return to the starting square, and refrain from modifying kind in that case.
Ah, of course. The problem is that the Tinker script you wrote does not test the color of the pieces. So the Lion sees itself in case of igui. The capture matrix does distinquish friendly capture from enemy capture, and normally you would only define a shock on the latter. Of course you could also have the Tinker script test for return to the starting square, and refrain from modifying kind in that case.