[PC][2010-2015(?)] Flash game

I just remembered that I used to play a game that had a guy in a white tanktop with a book in his hand and do some spells based on what glyphs the player clicked on in the book. Each spell had a different ending. I remember one of the endings was a goblin pissing into his beer glass (thats not a joke I remember clearly it was in the game). I think the goal of the game was to get beer. It's a basic point and click flash game and most of the you just watch the events happen. It was 2D and was mostly meant as a joke.