Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed secure hooking of tooltip #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

sarf
Copy link

@sarf sarf commented Sep 22, 2019

Has side effects, but should have been done earlier.
Unsure how Theorycraft originally worked, but the whole way of using the GameTooltip to both extract information and put in the new one at the same time is not very good.
If extraction of information is needed, do that on a separate, addon-specific GameTooltip frame.

This hooks the tooltip securely. This has side-effects in the tooltip code, which are handled a bit abruptly.
If additional information about a spell is needed, the addon should get its own GameTooltip and extract that information from it.
Added some tonumber conversion, probably caused by tooltip not containing the expected text.
@sarf
Copy link
Author

sarf commented Sep 22, 2019

Note that it currently works, but has certain issues - my Priests Flash Heal reports two different "heailing til oom" values (37.50k vs 1.35k). It seems one calculation only gets the +healing value and the other gets the base value as well?

@JeffP07
Copy link
Owner

JeffP07 commented Sep 22, 2019

Using your branch my tooltip doesn't properly show the average heal/dmg for some reason. My heals show things like 8 average heal. Not sure why yours still at least somewhat properly calculates healing done, but I assume it's missing data that was being extracted from the tooltip before that it no longer can get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants