→ WoW API
Checks to see if a unit is trivial.
local isTrivial = UnitIsTrivial(unit);
- unit (UnitID)
- the unit name (e.g., "target")
- true if the unit is trivial, false otherwise.
if (UnitIsTrivial("target")) then -- Target is trivial end
- 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.