が当たった

was right

→ が
phrase Uncommon #16,122
was right Said when a guess, hunch, or prediction proves correct.
JA: あなたの予想が当たった。
EN: Your prediction was right.

あなたは推理が当たった。

Your deduction was correct.

予感が当たったわ

My hunch was right.

— REC / レック (2007)

君の予言が当たったよ。

Your prediction came true.

天気予報が当たったよ。

The weather forecast was right.