API UnitCreatureType

Returns the creature type of the specified unit.

creatureType = UnitCreatureType(unit)

Arguments

 * unit : string - the UnitId to query

Returns

 * creatureType : string - the localized creature type of the unit

Examples
print(UnitCreatureType("target"))

Result

 * Prints the target's creature type to the chat frame.