Skip to content

Commit

Permalink
10.2.0 (52068)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 7, 2023
1 parent 3e964ed commit ac4910b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ local PvpInfo =
LiteralName = "PVP_ROLE_POPUP_HIDE",
Payload =
{
{ Name = "readyCheckInfo", Type = "PvpReadyCheckInfo", Nilable = false },
{ Name = "readyCheckInfo", Type = "PvpReadyCheckInfo", Nilable = true },
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,20 @@ function PerksProgramProductsFrameMixin:OnEvent(event, ...)
local vendorItemID = ...;

local vendorItemInfo = PerksProgramFrame:GetVendorItemInfo(vendorItemID);

if event == "PERKS_PROGRAM_REFUND_SUCCESS" then
vendorItemInfo.purchased = false;
end

-- Make sure to update scroll box data since they won't receive the events sent below to update shown frames
local scrollBox = self.ProductsScrollBoxContainer.ScrollBox;
local _, foundElementData = scrollBox:FindByPredicate(function(elementData)
return elementData.perksVendorItemID == vendorItemID;
end);
if foundElementData then
foundElementData.purchased = vendorItemInfo.purchased;
foundElementData.refundable = vendorItemInfo.refundable;
end

EventRegistry:TriggerEvent("PerksProgram.OnProductPurchasedStateChange", vendorItemInfo);
EventRegistry:TriggerEvent("PerksProgram.OnProductInfoChanged", vendorItemInfo);

Expand Down
10 changes: 8 additions & 2 deletions Interface/FrameXML/PvpPopup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ function PVPReadyPopupMixin:OnEvent(event, ...)
elseif (event == "PVP_ROLE_POPUP_HIDE") then
if(self:IsShown()) then
local readyCheckInfo = ...;
self.startHide = true;
self:Setup(readyCheckInfo);
local hideInstantly = readyCheckInfo == nil;
if hideInstantly then
PlaySound(SOUNDKIT.LFG_DENIED);
StaticPopupSpecial_Hide(PVPReadyPopup);
else
self.startHide = true;
self:Setup(readyCheckInfo);
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion Interface/GlueXML/CharacterServices.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ local function IsBoostFlowValidForCharacter(flowData, class, level, boostInProgr
return false;
end

if raceFilename == "Dracthyr" then
if (flowData.level < 70) and (raceFilename == "Dracthyr") then
return false;
end

Expand Down

0 comments on commit ac4910b

Please sign in to comment.