# SpecializationShared (global functions): World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/SpecializationShared

## Functions

### GetSpecializationInfoForClassID

```lua
id, name, description, icon, role, recommended, allowedForBoost, masterySpell1, masterySpell2 = GetSpecializationInfoForClassID(classID, index, [gender])
```

Arguments:
- `classID`: number
- `index`: luaIndex
- `gender`: UnitSex, may be nil

Returns:
- `id`: number
- `name`: cstring
- `description`: string
- `icon`: fileID
- `role`: cstring
- `recommended`: bool
- `allowedForBoost`: bool
- `masterySpell1`: number, may be nil
- `masterySpell2`: number, may be nil

### GetSpecializationInfoForSpecID

```lua
id, name, description, icon, role, recommended, allowedForBoost, masterySpell1, masterySpell2 = GetSpecializationInfoForSpecID(specID, [gender])
```

Arguments:
- `specID`: number
- `gender`: UnitSex, may be nil

Returns:
- `id`: number
- `name`: cstring
- `description`: string
- `icon`: fileID
- `role`: cstring
- `recommended`: bool
- `allowedForBoost`: bool
- `masterySpell1`: number, may be nil
- `masterySpell2`: number, may be nil

### GetSpecializationNameForSpecID

```lua
name = GetSpecializationNameForSpecID(specID, [gender])
```

Arguments:
- `specID`: number
- `gender`: UnitSex, may be nil

Returns:
- `name`: cstring, may be nil

### GetSpecializationSystem

```lua
system = GetSpecializationSystem()
```

Returns:
- `system`: SpecializationSystem

### HasLootSpecializations

```lua
hasLootSpecializations = HasLootSpecializations()
```

Returns:
- `hasLootSpecializations`: bool

## Tables

### Enum.SpecializationSystem (enumeration)

- `TalentTab` = 0
- `ChrSpecialization` = 1

### SpecializationInfoResult (structure)

- `id`: number
- `name`: cstring
- `description`: string
- `icon`: fileID
- `role`: cstring
- `recommended`: bool
- `allowedForBoost`: bool
- `masterySpell1`: number, may be nil
- `masterySpell2`: number, may be nil

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
