compat: use string based client check

This commit is contained in:
shagu
2019-06-10 17:11:29 +02:00
parent e9237b59b2
commit 4fb8c6fdfa
2 changed files with 2 additions and 10 deletions
+1 -8
View File
@@ -1,13 +1,6 @@
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
if pfUI.client < 20000 or pfUI.client > 20400 then return end
DEFAULT_CHAT_FRAME:AddMessage("Compatibility Mode for |cff33ffccTBC |cffffff002.4.3|r has been loaded. Good Luck!")
-- blacklist unrequired modules
pfUI.module.autoshift = true
pfUI.module.itemclick = true
pfUI.module.hdgraphic = true
if pfUI.expansion ~= "tbc" then return end
-- [[ Constants ]]--
CASTBAR_EVENT_CAST_DELAY = "UNIT_SPELLCAST_DELAYED"
+1 -2
View File
@@ -1,7 +1,6 @@
-- load pfUI environment
setfenv(1, pfUI:GetEnvironment())
if pfUI.client > 11200 then return end
if pfUI.expansion ~= "vanilla" then return end
-- [[ Constants ]]--
CASTBAR_EVENT_CAST_DELAY = "SPELLCAST_DELAYED"