Skip to content

Commit

Permalink
block edit mode if in combat
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 23, 2024
1 parent 3734db8 commit e048136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UnitFrames/EditMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ end)
--- If show is nil then the current state will be toggled
---@param show boolean?
function U:EditMode(show)
if InCombatLockdown() then return end

if show ~= nil then
CUF.vars.inEditMode = show
else
Expand Down

0 comments on commit e048136

Please sign in to comment.