DatBear / Guardians-of-the-Rift-Helper

Shows info about the Guardians of the Rift minigame
BSD 2-Clause "Simplified" License
7 stars 26 forks source link

Allow one click per tick while the portal is closed #6

Closed aHooder closed 2 years ago

aHooder commented 2 years ago

Sorry, me again. After some more testing I realised PR #5 causes an unnecessary delay when spam clicking while the portal is closed, which could potentially also lead to being left out of the game... Oops. This PR checks for a known string in a message dialog box widget that appears when clicking on the yellow version of the barrier when the previous game is ending. If the message is spotted, the cooldown is reset, allowing one click per tick instead of every 3 ticks.