Skip to content

Fixed secure hooking of tooltip#2

Open
sarf wants to merge 2 commits intoJeffP07:masterfrom
sarf:master
Open

Fixed secure hooking of tooltip#2
sarf wants to merge 2 commits intoJeffP07:masterfrom
sarf:master

Conversation

@sarf
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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