Auto-translated
The version linked in the first post has been updated. Calculation of retaliatory damage and swap have been added. Retaliatory damage is calculated even if the attacker doesn't have any or is an archer, but I don't think this will bother anyone.
Current screenshot: