I have watched the movies and I do not understand what this post is explaining. Can someone more skilled than me explain it please?
Dumbledore gives Harry some potion that basically increases his luck stat by infinity. I forgot what they actually called it.
Felix Felicis is a potion sometimes called “Liquid Luck.” Until the effects wear off, all the drinker’s endeavours will tend to succeed
https://www.hp-lexicon.org/magic/felix-felicis/
Harry Potter has an in-universe luck potion. Based on that wiki page, it looks like it was only relevant in the sixth book/movie