[open] New function request - GetUnitIdDifficulty(unitId)
Currently we can only get the difficulty rating of a unitTag with the function GetUnitDifficulty(unitTag). We only get unitTags from player/playerpet/reticleover/boss/group, or from EVENT_EFFECT_CHANGED with a valid unitTag of that type.
I'd like to be able to get the difficulty of a unit based on the UnitId provided from incoming combat events targeting the player.
Would be useful to check the rank of the unit casting an ability at the player.
New function could be: GetUnitIdDifficulty(number unitId)
Returns: number UIMonsterDifficulty difficulty