This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi there,
I have a very specific QoL issue I want to solve in wow which is to only enable mouseover to work when moused over party/raid frames and not in world.
However, I'm unsure if I can differentiate mouseover for UI frames vs. in-world units, so I would settle for mouseover to be disabled over enemies only. Basically I want to be able to mouse over helpful spells to help allies quickly (heals, shields, dispels, etc.) while not accidentally casting a spell on an unintended enemy target as I'm moving the mouse over to the frames. This problem actually happens quite often for me. For example I'm playing shadow priest and have an enemy targeted trying to reapply vamp touch while mousing over an ally UI frame to shield them for the next global but my mouse happens to cross over an enemy that's not being targeted that didn't need vamp touch. And then my primary target doesn't get reapplied and it can be all bad for my damage.
Anyways that's the context of why I'm looking into this. Where bartender comes in is I noticed that the enable mouseover cast is enabled per bar in state configuration, which is interesting as it seems to completely override wow's enableMouseoverCast CVar. It led me to believe somewhere in the code there is a hook when casting a spell to see if the mouse over is enabled for that particular bar, and if there was some possibility for me to intercept that call and check the currently moused over unit and if it's enemy then just don't cast the spell.
I can't seem to find where that hook is. I feel like I've searched very thoroughly so I'd appreciate any guidance on this or if this feature can be added in a future update.
Thanks!
Just as I post this I find in StateBar.lua lines 289, 290 if I just comment out harmDriver and allDriver it produces the desired effect! It would be nice if I could prevent all friendly mouseovers from working in world too but it's looking like that might be a limitation on the wow-side of things. But my knowledge of wow api is extremely limited.
To post a comment, please login or register a new account.