Skip to content

Conversation

@danlemmond
Copy link

The current tooltip implementation does a string check against the name returned from GetUnit but this can lead to players who have named themselves after NPCs having creature data rendered in their tooltips

Instead, run a UnitIsPlayer check prior to rendering any tooltip data that returns immediately if the unit is a player

The current tooltip implementation does a string check
against the name returned from GetUnit but this can lead
to players who have named themselves after NPCs having
creature data rendered in their tooltips

Instead, run a UnitIsPlayer check prior to rendering any tooltip
data that returns immediately if the unit is a player
@danlemmond
Copy link
Author

I also added mob to the tooltip messages to make them a bit more clear, can remove if you'd prefer the tooltip stay the same

@danlemmond
Copy link
Author

image

Here's an example of a player w/ an NPC name incorrectly having deathlog tooltip data.

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.

1 participant