API GetInstanceDifficulty

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==
*
*
*