Blizzard Nameplates - Threat

Blizzard Nameplates - Threat

125k Downloads

Colors change on random targeting

mikfhan opened this issue ยท 2 comments

commented

Some mobs/bosses randomly target someone regardless of threat percentage, confusing the nameplate coloring. Maybe ignore those situations for mob/boss coloring and only measure actual threat percentage. Only using actual target for coloring PvP enemy players.

Maybe try copying contents of link below, replacing all inside your addon folder NamePlatesThreat.lua file, and let me know here if it has issues still to sort out:

https://raw.githubusercontent.com/int3ro/Nameplates_Threat/mikfhan/NamePlatesThreat.lua

commented

This seems to be new with 10.0.7... Mobs are constantly changing colors in dungeons and raids whenever they cast a spell or target anyone? maybe something changed in the way they calculate threat or a bug cuz colors are flickering even when tank has aggro? idk i am testing this file and seems to fix it so far thanks

commented

Ah super, yeah I discovered the actual color gradient function had stopped working since Dragonflight 10.0.2 or so. For some reason it only used the 0 or 1 colors, never the gradient inbetween. Once I got that working it revealed the color values were a bit wonky, because I had measured threat situation a little weird right at the 100% mark - relying on actual mob target in 3.6-release solved most of it, but then colors also switch for those short random targeted spells which was not the intent :P

Sounds like it works with the fix in here, so I might deploy 3.7-release far ahead of patch day for 10.1.0 dragonflight.

PS: I have actually never tested properly if nameplates are colored in PvP (pink out of combat, otherwise the simple or advanced colors depending on who they target). Maybe I should try that out a bit for lowlevel battlegrounds.