Returns a unit's level. Returns -1 for boss units and hostile units whose level is ten levels or more above the player's.
See also Unit functions.
Signature:
level
=
UnitLevel("unit")
Arguments:
unit
- A unit to query (string
, unitID)
Returns:
level
- The unit's level (number
)