Skip to content

Commit

Permalink
probably dont need this
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Jan 6, 2025
1 parent 573e7c9 commit e74d346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ElvUI/Core/Modules/Nameplates/Nameplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,12 @@ function NP:EnviromentConditionals()
local value = (inInstance and instanceType) or (IsResting() and 'resting') or 'world'

-- Handle friendly nameplates if friendly combat toggle is not set
if env.friendlyEnabled and (not db.showFriendlyCombat or db.showFriendlyCombat == 'DISABLED') then
if env.friendlyEnabled and db.showFriendlyCombat == 'DISABLED' then
NP:ToggleCVar('nameplateShowFriends', env.friendly[value])
end

-- Handle enemy nameplates if enemy combat toggle is not set
if env.enemyEnabled and (not db.showEnemyCombat or db.showEnemyCombat == 'DISABLED') then
if env.enemyEnabled and db.showEnemyCombat == 'DISABLED' then
NP:ToggleCVar('nameplateShowEnemies', env.enemy[value])
end

Expand Down

0 comments on commit e74d346

Please sign in to comment.