Skip to content

Commit

Permalink
health: Add class color for AI units
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Aug 7, 2024
1 parent 637ace2 commit 050f12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elements/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ local function UpdateColor(self, event, unit)
color = self.colors.tapped
elseif(element.colorThreat and not UnitPlayerControlled(unit) and UnitThreatSituation('player', unit)) then
color = self.colors.threat[UnitThreatSituation('player', unit)]
elseif(element.colorClass and UnitIsPlayer(unit))
or (element.colorClassNPC and not UnitIsPlayer(unit))
elseif(element.colorClass and (UnitIsPlayer(unit) or UnitInPartyIsAI(unit)))

Check warning on line 130 in elements/health.lua

View workflow job for this annotation

GitHub Actions / lint

accessing undefined variable 'UnitInPartyIsAI'
or (element.colorClassNPC and not (UnitIsPlayer(unit) or UnitInPartyIsAI(unit)))

Check warning on line 131 in elements/health.lua

View workflow job for this annotation

GitHub Actions / lint

accessing undefined variable 'UnitInPartyIsAI'
or (element.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then
local _, class = UnitClass(unit)
color = self.colors.class[class]
Expand Down

0 comments on commit 050f12b

Please sign in to comment.