diff --git a/AI_VoiceOver/Compatibility.lua b/AI_VoiceOver/Compatibility.lua index 296e3b80..ada88af9 100755 --- a/AI_VoiceOver/Compatibility.lua +++ b/AI_VoiceOver/Compatibility.lua @@ -211,7 +211,7 @@ if not WOW_PROJECT_ID and INTERFACE_VERSION < 70000 then end end -if not WOW_PROJECT_ID and string.sub(CLIENT_VERSION, 1, 4) == "1.12" then +if not WOW_PROJECT_ID and INTERFACE_VERSION < 11300 then function Utils:GetNPCName() return UnitName("npc") diff --git a/AI_VoiceOver_112/Compatibility.lua b/AI_VoiceOver_112/Compatibility.lua index efb1f9ef..1b872824 100644 --- a/AI_VoiceOver_112/Compatibility.lua +++ b/AI_VoiceOver_112/Compatibility.lua @@ -90,7 +90,7 @@ function CreateFrame(frameType, name, parent, template) return frame end -if not WOW_PROJECT_ID and string.sub(CLIENT_VERSION, 1, 4) == "1.12" then +if not WOW_PROJECT_ID and INTERFACE_VERSION < 11300 then function Utils:GetNPCName() return UnitName("npc")