Skip to content

Commit

Permalink
better location for optimize. allows init after login while mounted
Browse files Browse the repository at this point in the history
  • Loading branch information
ynazar1 committed Dec 3, 2024
1 parent c452767 commit 85cb66e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@ Enum.SmartBuffGroup = {

-- Set the current template and create an array of units
function SMARTBUFF_SetTemplate()
if (InCombatLockdown()) then return end
-- Don't init things when mounted or in combat
if (InCombatLockdown() or IsMounted() or IsFlying()) then return end
if (SmartBuffOptionsFrame:IsVisible()) then return end

local newTemplate = currentTemplate -- default to old template
Expand Down Expand Up @@ -1026,8 +1027,7 @@ end

-- Set the buff array
function SMARTBUFF_SetBuffs()
-- Don't init things when mounted or in combat
if (InCombatLockdown() or IsMounted() or IsFlying()) then return end
if (InCombatLockdown()) then return end
if (B == nil) then return; end

local n = 1;
Expand Down

0 comments on commit 85cb66e

Please sign in to comment.