Hi, I'm trying to setup a rule to keep me from going AFK by opening the skill tree, and I believe I've found a bug in gamehelper or the plugin, because this only works while the settings window is visible.
I configured it like this:
dhbug.png
I'm using call to arms support with enduring cry to trigger it automatically - this allows me to add a condition to only press the key when I have the enduring cry buff to add a bit of randomness to the keypress. This can be ignored alongside the first condition if you just want to reproduce the issue on your end.
I set the CD to 30 seconds.
I set a condition of "PlayerAnimation.Equals(Animation.Idle)" and set it to wait for 30 seconds.
the way i expected it to work: on a 30sec CD, if I've been idle for >=30 seconds, whenever the enduring cry buff shows up, press P
what actually happens:
If the Game Overlay Settings window is hidden (using the hotkey), the condition "PlayerAnimation.Equals(Animation.Idle)" is not set to false when I move. So it will always be true and this will trigger even when I'm running around in a map.
(it will always be true because: it starts at false with the config window open, I close the config window, 30sec pass and it becomes true, and never gets set to false again)
If the Game Overlay Settings window is visible and the expression line is being shown, I can see the condition "PlayerAnimation.Equals(Animation.Idle)" correctly being set to false when I move, and 30sec after I stop moving it becomes true
Also, if I have the game overlay settings window open, but the "Existing Conditions" is collapsed I get the same behaviour as if the Game Overlay Settings window is hidden.
It seems that part of the expression checking code is running in ImGui frame loop, and stops checking whenever ImGui is not rendering the "expression" component.