diff --git a/Commands.lua b/Commands.lua index 442653a..62a520a 100644 --- a/Commands.lua +++ b/Commands.lua @@ -80,6 +80,7 @@ function AprRC.command:SlashCmd(input) elseif inputText == "coord" then local currentStep = AprRC:GetLastStep() AprRC:SetStepCoord(currentStep, currentStep.Range) + currentStep.NoArrow = nil -- remove NoArrow print("|cff00bfffCoord|r Added") return elseif inputText == "range" then diff --git a/frames/exportRoute.lua b/frames/exportRoute.lua index 7ebdbe2..e637c68 100644 --- a/frames/exportRoute.lua +++ b/frames/exportRoute.lua @@ -112,9 +112,10 @@ function AprRC.export:Show() exportToAPRBtn:SetWidth(200) exportToAPRBtn:SetCallback("OnClick", function() local route = AprRC:FindRouteByName(selectedRouteName) - APRData.CustomRoute[route.name] = route.steps - APR.RouteQuestStepList[route.name] = route.steps - APR.RouteList.Custom[route.name] = route.name:match("%d+-(.*)") + local name = route.name .. ' - Custom' + APRData.CustomRoute[name] = route.steps + APR.RouteQuestStepList[name] = route.steps + APR.RouteList.Custom[name] = name:match("%d+-(.*)") end) frame:AddChild(exportToAPRBtn)