API UnitClass

Returns the class of the unit.
 className, classFilename, classId = UnitClass(unit)
 classFilename, classId = UnitClassBase(unit)
==Arguments==
:;unit: : UnitId
==Returns==
:;className: - Localized name, e.g. "Warrior" or "Guerrier".
:;classFilename: - Locale-independent name, e.g. "WARRIOR".
:;classId: : ClassId
==Example==
/dump UnitClass("target") -- "Mage", "MAGE", 8
/dump UnitClassBase("target") -- "MAGE", 8
==Values==
==Patch changes==