Quantcast

Adding backwards compatibility for 7.2.5

Darth Predator [08-24-17 - 10:27]
Adding backwards compatibility for 7.2.5
Filename
ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
ElvUI_SLE/modules/pvp.lua
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)