nameplates: show unit tapping state with superwow

This commit is contained in:
shagu
2024-11-08 08:55:00 +01:00
parent 2963f7e1e0
commit ca87f7148f
+4
View File
@@ -704,6 +704,10 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
r, g, b, a = RAID_CLASS_COLORS[class].r, RAID_CLASS_COLORS[class].g, RAID_CLASS_COLORS[class].b, 1
end
if superwow_active and unitstr and UnitIsTapped(unitstr) and not UnitIsTappedByPlayer(unitstr) then
r, g, b, a = .5, .5, .5, .8
end
if r ~= plate.cache.r or g ~= plate.cache.g or b ~= plate.cache.b then
plate.health:SetStatusBarColor(r, g, b, a)
plate.cache.r, plate.cache.g, plate.cache.b = r, g, b