Skip to content

Commit

Permalink
Store auras when storing assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Sep 2, 2022
1 parent 7ace6c1 commit a3b05b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ function PallyPower:Purge()
PallyPower_Assignments = {}
PallyPower_NormalAssignments = {}
PallyPower_AuraAssignments = {}

PallyPower_SavedPresets = nil
end

function PallyPower:Reset()
Expand Down Expand Up @@ -3856,6 +3858,7 @@ function PallyPower:StorePreset()
--save current Assignments to preset
PallyPower_SavedPresets["PallyPower_Assignments"][0] = tablecopy(PallyPower_Assignments)
PallyPower_SavedPresets["PallyPower_NormalAssignments"][0] = tablecopy(PallyPower_NormalAssignments)
PallyPower_SavedPresets["PallyPower_AuraAssignments"][0] = tablecopy(PallyPower_AuraAssignments)
end

function PallyPower:LoadPreset()
Expand All @@ -3866,6 +3869,7 @@ function PallyPower:LoadPreset()
PallyPower:SendMessage("CLEAR SKIP")
PallyPower_Assignments = tablecopy(PallyPower_SavedPresets["PallyPower_Assignments"][0])
PallyPower_NormalAssignments = tablecopy(PallyPower_SavedPresets["PallyPower_NormalAssignments"][0])
PallyPower_AuraAssignments = tablecopy(PallyPower_SavedPresets["PallyPower_AuraAssignments"][0])
C_Timer.After(
0.25,
function() -- send Class-Assignments
Expand Down

0 comments on commit a3b05b7

Please sign in to comment.