Skip to content

Commit

Permalink
only show hostile targets as charmed
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Aug 28, 2024
1 parent 0be2593 commit fd607bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Widgets/Bars/HealthBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function U:UnitFrame_UpdateHealthColor(button)
if not UnitIsConnected(unit) then
barR, barG, barB = 0.4, 0.4, 0.4
lossR, lossG, lossB = 0.4, 0.4, 0.4
elseif UnitIsCharmed(unit) then
elseif UnitIsCharmed(unit) and UnitIsEnemy("player", unit) then
barR, barG, barB, barA = 0.5, 0, 1, 1
lossR, lossG, lossB, lossA = barR * 0.2, barG * 0.2, barB * 0.2, 1
elseif button.states.inVehicle then
Expand Down

0 comments on commit fd607bf

Please sign in to comment.