Skip to content

Commit

Permalink
fix cata tts error
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Oct 29, 2024
1 parent d1cff91 commit 8cdd379
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ElvUI_EltreumUI/Modules/Skins/Other/Doom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,15 @@ function ElvUI_EltreumUI:Doom()
DCP.TextFrame:SetText(animating[1][3])
end
if E.db.ElvUI_EltreumUI.skins.doom.tts and animating[1][3] then --and animating[1][3] ~= nil then
local tts = GetSpellInfo(animating[1][3])
if E.db.ElvUI_EltreumUI.skins.doom.ttsvoice ~= nil and tts ~= nil then
C_VoiceChat.SpeakText(E.db.ElvUI_EltreumUI.skins.doom.ttsvoice, tts.name, Enum.VoiceTtsDestination.LocalPlayback, 0, E.db.ElvUI_EltreumUI.skins.doom.ttsvolume)
if E.Cata then --cata on 29/10/2024 seems to not have fully migrated like classic era
if E.db.ElvUI_EltreumUI.skins.doom.ttsvoice ~= nil then
C_VoiceChat.SpeakText(E.db.ElvUI_EltreumUI.skins.doom.ttsvoice, animating[1][3], Enum.VoiceTtsDestination.LocalPlayback, 0, E.db.ElvUI_EltreumUI.skins.doom.ttsvolume)
end
else
local tts = GetSpellInfo(animating[1][3])
if E.db.ElvUI_EltreumUI.skins.doom.ttsvoice ~= nil and tts ~= nil then
C_VoiceChat.SpeakText(E.db.ElvUI_EltreumUI.skins.doom.ttsvoice, tts.name, Enum.VoiceTtsDestination.LocalPlayback, 0, E.db.ElvUI_EltreumUI.skins.doom.ttsvolume)
end
end
end
DCPT:SetTexture(animating[1][1])
Expand Down

0 comments on commit 8cdd379

Please sign in to comment.