Player A = Attacker
Player B = Being attacked

I've been trying to make A not able to log out right after they attacked B and I realized the reason that A is able to log out is because when B gets attacked, there logoutDelay get updated, but A's logoutDelay never gets updated, so they are allowed to log out immediately.

I was wondering what methods should I updated B's logoutDelay? I wanted to confirm this with someone who has completed this, so my theory doesn't mess everything up.