Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 8.2.5

Needs summary.

expansionLevel = GetExpansionForLevel(playerLevel)

Arguments

playerLevel 
number

Returns

expansionLevel 
number

Values

Levels Expansion
1-30 0 (LE_EXPANSION_CLASSIC)
31-35 3 (LE_EXPANSION_CATACLYSM)
36-40 5 (LE_EXPANSION_WARLORDS_OF_DRAENOR)
41-45 6 (LE_EXPANSION_LEGION)
46-50 7 (LE_EXPANSION_BATTLE_FOR_AZEROTH)
51-60 8 (LE_EXPANSION_SHADOWLANDS)

Patch changes

Advertisement