From 6f5729f6191df337472f7e8df27c3b1dc0c78197 Mon Sep 17 00:00:00 2001 From: Scott King Date: Wed, 1 Jul 2015 23:35:10 -0600 Subject: [PATCH] Added sound for execute phase. Need to change to play one time only. --- PortraitHealth.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PortraitHealth.lua b/PortraitHealth.lua index 262e53a..82041d4 100755 --- a/PortraitHealth.lua +++ b/PortraitHealth.lua @@ -80,7 +80,9 @@ function HealthPercentage() elseif PlayerClass == 4 and TargetPercentHealth < 35 then -- Rogue PortraitHealth_Health:SetTextColor(1,0,0); - PlaySoundFile("Sound\\interface\\AuctionWindowClose.ogg"); + if not UnitIsDead("target") then + PlaySoundFile("Sound\\interface\\AuctionWindowClose.ogg"); + end elseif PlayerClass == 5 and TargetPercentHealth < 20 then -- Priest PortraitHealth_Health:SetTextColor(1,0,0); -- 1.7.9.5