GetInstanceDifficulty
Jump to navigation
Jump to search
Links |
---|
Info |
Added in 2.0.1 |
![]() |
This no longer exists on any flavor of the game. |
![]() |
This is no longer a part of the World of Warcraft API.
|
Returns the difficulty of the instance the player is currently in.
difficultyIndex = GetInstanceDifficulty()
Returns
- difficultyIndex
- Number
- 1 → None
- 2 → 5 Player & Scenario
- 3 → 5 Player (Heroic)
- 4 → 10 Player
- 5 → 25 Player
- 6 → 10 Player (Heroic)
- 7 → 25 Player (Heroic)
- 8 → Raid Finder
- 9 → Challenge Mode
- 10 → 40 Player
Notes
- Returns 1 if the player is not currently in an instance. Also returns 1 when player is in a battleground.
- The return values from GetInstanceInfo() are similar, but different (offset by 1).
- Semi-related functions: GetDungeonDifficultyID() and GetRaidDifficulty().
Patch changes
Patch 5.2.0 (2013-03-05): Removed. Use GetInstanceInfo and GetDifficultyInfo.
Patch 5.0.4 (2012-08-28): New returns for Raid Finder, Challenge Mode, and 40 Player.
Patch 3.2.0 (2009-08-04): 'Epic' removed from index and replaced with new returns for 10/25 Player normal and Heroic.