あんな状況の中、あんな文面で士道からお誘いがあったなら、普通の女子であれば警戒するに決まっている。わざわざ馬鹿正直に一人で待ち合わせ場所に来ようとは思わないだろう。すっぽかされなかっただけまだ幸運だったかもしれなかった。
Context: In the name of 士道, a letter was sent to 亜衣, one of 士道’s classmates, telling her (亜衣) to go alone to meet 士道 in a cafe. But it turned out that 亜衣 went there in company with her friends.
Hi. Is function of the だけ in bold 範囲を限定する, as in「学校だけでなく家庭での指導も大切だ」?
And can I think the だけまだ幸運だった is a variant of the idiom だけまだましだった?
And why isn’t だけで used here?
By the way, does the だけ in the following quote have the same function as the first example?
何しろ買い物から帰ってきたら、出かける前に見ていた街とは別の光景が広がっていたというのである。その場にへたり込んでしまわないだけ、折紙はまだ幾分落ち着いているのかもしれなかった。
Thank you.