WoW:API UnitIsTrivial: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
;''Returns'' | ;''Returns'' | ||
:;isTrivial: true if the unit is trivial, false | :;isTrivial: true if the unit is trivial, nil otherwise. Nil is treated like false for most operations but it is *not* a proper boolean. | ||
---- | ---- |
Revision as of 16:59, 9 January 2008
← WoW API < UnitIsTrivial
Checks to see if a unit is trivial.
local isTrivial = UnitIsTrivial(unit);
- Arguments
- unit (UnitID)
- the unit name (e.g., "target")
- Returns
- isTrivial
- true if the unit is trivial, nil otherwise. Nil is treated like false for most operations but it is *not* a proper boolean.
- Example
if (UnitIsTrivial("target")) then -- Target is trivial end
Details
- To be trivial, a target must be a significant number of levels under the player (at level 60, units level 47 and under are trivial).
- Trivial units give no experience or honor, but continue to give loot, quest credit and (reduced) faction.