Enhanced/NamePlates: remove. Not needed

This commit is contained in:
andrew6180
2023-05-31 15:41:31 -07:00
parent 1fbdc4f542
commit cbaf9f0bb3
6 changed files with 13 additions and 13 deletions
+8 -8
View File
@@ -138,14 +138,14 @@ local function ColorPath(self, ...)
--[[ Override: Health.UpdateColor(self, event, unit)
Used to completely override the internal function for updating the widgets' colors.
* self - the parent object
* event - the event triggering the update (string)
* unit - the unit accompanying the event (string)
--]]
local _, unit = ...
local args
if unit and self.isNamePlate then
if (event == "UNIT_THREAT_SITUATION_UPDATE" or event == "UNIT_FLAGS") and unit == "player" then
* self - the parent object
* event - the event triggering the update (string)
* unit - the unit accompanying the event (string)
--]]
local _, unit = ...
local args
if unit and self.isNamePlate then
if ((event == "UNIT_THREAT_SITUATION_UPDATE" or event == "UNIT_FLAGS") and unit == "player") or event == "UNIT_THREAT_LIST_UPDATE" then
args = { ... }
args[2] = self.unit
elseif unit:sub(1, 9) ~= "nameplate" then