Implemented EndAttack logic