LibThreatClassic2 icon indicating copy to clipboard operation
LibThreatClassic2 copied to clipboard

Provide UnitThreatSituation API response without giving target

Open dfherr opened this issue 5 years ago • 0 comments

provide a threatStatus response similar to the retail API https://wowwiki.fandom.com/wiki/API_UnitThreatSituation

This means threatStatus is determined by the highest status on any target.

This requires a loop over the targets of all party/raid members and their pets to determine if the provided unit is tanking (or in danger of tanking) in any of them.

dfherr avatar Jan 13 '20 15:01 dfherr