Skip to content

Commit

Permalink
power: 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 0b6d4f4 commit 4566600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elements/power.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ local function UpdateColor(self, event, unit)
else
color = self.colors.power[ALTERNATE_POWER_INDEX]
end
elseif(element.colorClass and UnitIsPlayer(unit))
or (element.colorClassNPC and not UnitIsPlayer(unit))
elseif(element.colorClass and (UnitIsPlayer(unit) or UnitInPartyIsAI(unit)))
or (element.colorClassNPC and not (UnitIsPlayer(unit) or UnitInPartyIsAI(unit)))
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 4566600

Please sign in to comment.