m
→Notes
(italics in code) |
m (→Notes) |
||
| Line 25: | Line 25: | ||
==Notes== | ==Notes== | ||
Passing a true value for ''isPet'' should only | *Passing a true value for ''isPet'' should only work if the player is a hunter and has a pet active. | ||
*In order for this function to return any useful information one of the following must occur: | |||
**You're using it to get information regarding your player's current spec. In which case, you will not be passing the second argument. The client already knows everything it needs to know about you, so you don't need to inspect yourself. | |||
**You're currently inspecting the unit and pass ''true'' as the second argument. In other words, the inspect frame is open and you have a target. | |||
**You're calling {{api|NotifyInspect}}([[UnitId|unit]]), are waiting for [[Events/I#INSPECT_TALENT_READY|INSPECT_TALENT_READY]] to fire, and are passing ''true'' as the second argument. After the event fires, the client will have the information you desire. | |||