Battle formula: test that the user has done a critical

I seem to recall there was a way to test that, like a.crit? or something, but even if there IS a way, I don't remember the exact syntax. Any clues?
I think you can use "b.result().critical". This will return true if a critical hit hits the target.

Original thread: https://forums.rpgmakerweb.com/threads/battle-formula-test-that-the-user-has-done-a-critical.119408/