Skip to content

Commit

Permalink
fixed the save of a preset
Browse files Browse the repository at this point in the history
  • Loading branch information
AznamirWoW committed Oct 17, 2023
1 parent 3f2aa07 commit ff243d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ function PallyPower:OnInitialize()
PallyPower_SavedPresets = {}
PallyPower_SavedPresets["PallyPower_Assignments"] = {[0] = {}}
PallyPower_SavedPresets["PallyPower_NormalAssignments"] = {[0] = {}}
PallyPower_SavedPresets["PallyPower_AuraAssignments"] = {[0] = {}}
end
local h = _G["PallyPowerFrame"]
h:ClearAllPoints()
Expand Down Expand Up @@ -3833,6 +3834,10 @@ function PallyPower:AutoAssign()
end

function PallyPower:StorePreset()
PallyPower_SavedPresets = {}
PallyPower_SavedPresets["PallyPower_Assignments"] = {[0] = {}}
PallyPower_SavedPresets["PallyPower_NormalAssignments"] = {[0] = {}}
PallyPower_SavedPresets["PallyPower_AuraAssignments"] = {[0] = {}}
--save current Assignments to preset
PallyPower_SavedPresets["PallyPower_Assignments"][0] = tablecopy(PallyPower_Assignments)
PallyPower_SavedPresets["PallyPower_NormalAssignments"][0] = tablecopy(PallyPower_NormalAssignments)
Expand Down

0 comments on commit ff243d2

Please sign in to comment.