View Single Post
06/06/19, 03:10 PM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
[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
  Reply With Quote