Troll Encounter in Harry Potter Games 1-4: No Battle Required
In the Harry Potter video games covering Years 1–4, there is a troll near Hagrid's hut in Sorcerer's Stone, but you do not need to defeat it to progress. It is simply an environmental obstacle that can be avoided.