From f989ca8ed236ba289e2bf94f77a7f52aecb4a847 Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Thu, 24 Aug 2017 13:27:21 +0300 Subject: [PATCH] Adding backwards compatibility for 7.2.5 --- .../modules/Armory/InspectArmory/InspectArmory.lua | 6 +++++- ElvUI_SLE/modules/pvp.lua | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua index 26a7127..22ca020 100644 --- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua +++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua @@ -384,7 +384,11 @@ function IA:CreateInspectFrame() self:SetClampedToScreen(true) self:Point('CENTER', E.UIParent) self:SetScript('OnHide', function() - PlaySound(SOUNDKIT.IG_CHARACTER_INFO_CLOSE) + if E.wowbuild < 24896 then --7.2.5 + PlaySound('igCharacterInfoClose') + else --7.3 + PlaySound(SOUNDKIT.IG_CHARACTER_INFO_CLOSE) + end if self.CurrentInspectData.Name then local TableIndex = self.CurrentInspectData.Name..(IA.CurrentInspectData.Realm and IA.CurrentInspectData.Realm ~= '' and IA.CurrentInspectData.Realm ~= Info.MyRealm and '-'..IA.CurrentInspectData.Realm or '') diff --git a/ElvUI_SLE/modules/pvp.lua b/ElvUI_SLE/modules/pvp.lua index 487ca83..9d23b91 100644 --- a/ElvUI_SLE/modules/pvp.lua +++ b/ElvUI_SLE/modules/pvp.lua @@ -118,7 +118,13 @@ function PvP:Initialize() self.SubTitle:Hide(); self:Show(); BossBanner_BeginAnims(self); - if E.private.sle.pvp.KBbanner.sound then PlaySound(SOUNDKIT.UI_RAID_BOSS_DEFEATED) end + if E.private.sle.pvp.KBbanner.sound then + if E.wowbuild < 24896 then --7.2.5 + PlaySound("UI_Raid_Boss_Defeated") + else --7.3 + PlaySound(SOUNDKIT.UI_RAID_BOSS_DEFEATED) + end + end end end end) -- 1.7.9.5