Skip to content

Commit

Permalink
Fix stage reset button
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jun 17, 2024
1 parent 9f1a8c7 commit f2e38b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ LootReserve.Constants.DefaultPhases = {
"Collection",
"Vendor",
};
LootReserve.Constants.DefaultRollPhases = {
"Main Spec",
"Off Spec",
};
LootReserve.Constants.WonRollPhase = {
Reserve = 1,
RaidRoll = 2,
Expand Down
5 changes: 3 additions & 2 deletions Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ LootReserve.Server =
RollUseTiered = true,
Phases = LootReserve:Deepcopy(LootReserve.Constants.DefaultPhases),
RollUsePhases = false,
RollPhases = {"Main Spec", "Off Spec"},
RollPhases = LootReserve:Deepcopy(LootReserve.Constants.DefaultRollPhases),
RollAdvanceOnExpire = true,
RollLimitDuration = false,
RollDuration = 30,
Expand Down Expand Up @@ -329,7 +329,8 @@ StaticPopupDialogs["LOOTRESERVE_CONFIRM_RESET_PHASES"] =
whileDead = 1,
hideOnEscape = 1,
OnAccept = function(self)
LootReserve.Server.Settings.Phases = LootReserve:Deepcopy(LootReserve.Constants.DefaultPhases);
LootReserve.Server.Settings.Phases = LootReserve:Deepcopy(LootReserve.Constants.DefaultPhases);
LootReserve.Server.Settings.RollPhases = LootReserve:Deepcopy(LootReserve.Constants.DefaultRollPhases);
end,
};

Expand Down

0 comments on commit f2e38b3

Please sign in to comment.