all about how bloddeuwedd had been made out of flowers and brought to life by the gods , and how she had betrayed her husband to his death , and how , in punishment , she had been doomed to spend each night from midnight to dawn as an owl .