ThreatClassic2

ThreatClassic2

9M Downloads

[REQ] Threat Warning List

sdensberger opened this issue ยท 0 comments

commented

Add an option for the Warnings feature where you can enter a list of name (space, comma, whatever) to warn on if you reach X% of either name's threat. This would be nice on encounters where dps need to stay below both the MT and OT. Without this implementation, users will have to manually watch the OTs threat to make sure they don't pass it. It would also be nice to have a button to enable/disable this feature (ideally on the meter interface, but in the options menu/via a / command would work too).

Something like:

while true do
    tankPercents = []
    for name in tankList do
        tankPercents << UnitDetailedThreatSituation(name,"target")
    end
    local _,_,playerPercent,_,_ = UnitDetailedThreatSituation("player","target")
    if playerPercent >= threatWarningPercent*math.min(tankPercents) then
        warnPlayer = true
    else
        warnPlayer = false
    end
end