GetInstanceDifficulty

From Warcraft Wiki
Jump to navigation Jump to search
Links
Info
Added in 2.0.1

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).

Patch changes