View Single Post
Old 12-04-12, 01:55 PM   #29
A Scalebane Royal Guard
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 442
Okay, I didn't take into account that the faction might change, so you probably should avoid caching it if it's neutral. However, I warn you against skipping OnTooltipSetUnit, I've had issues before making the assumption that a tooltip's text is going to be available immediately after I set it.

Also, don't assume that it's neutral because it doesn't match the alliance or horde string because sometimes the faction isn't mentioned in the tooltip, which I believe always means it's not your faction, but could be either neutral or the opposing faction.

Last edited by semlar : 12-04-12 at 02:04 PM.
semlar is offline   Reply With Quote