From 5fef85ac7de5bedf7bc43fbf334dce9b9f76e2f9 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 6 Oct 2021 23:20:19 +0200 Subject: [PATCH] mods: disable modules already existing in tbc --- mods/equip-compare.lua | 3 +++ mods/minimap-clock.lua | 1 + mods/target-castbar.lua | 5 +++++ mods/target-debufftimer.lua | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/mods/equip-compare.lua b/mods/equip-compare.lua index ec8d343..740a5bd 100644 --- a/mods/equip-compare.lua +++ b/mods/equip-compare.lua @@ -1,6 +1,9 @@ local _G = _G or getfenv(0) local GetExpansion = ShaguTweaks.GetExpansion +-- already part of the game +if GetExpansion() ~= "vanilla" then return end + local module = ShaguTweaks:register({ title = "Equip Compare", description = "Shows currently equipped items on tooltips while the shift key is pressed.", diff --git a/mods/minimap-clock.lua b/mods/minimap-clock.lua index fe1759b..cab2cdc 100644 --- a/mods/minimap-clock.lua +++ b/mods/minimap-clock.lua @@ -1,6 +1,7 @@ local _G = _G or getfenv(0) local GetExpansion = ShaguTweaks.GetExpansion +-- tbc already has a clock if GetExpansion() ~= "vanilla" then return end local module = ShaguTweaks:register({ diff --git a/mods/target-castbar.lua b/mods/target-castbar.lua index 1bbbc1b..2a94d64 100644 --- a/mods/target-castbar.lua +++ b/mods/target-castbar.lua @@ -3,6 +3,11 @@ local GetExpansion = ShaguTweaks.GetExpansion local UnitCastingInfo = ShaguTweaks.UnitCastingInfo local UnitChannelInfo = ShaguTweaks.UnitChannelInfo +local GetExpansion = ShaguTweaks.GetExpansion + +-- TBC already has casting bars +if GetExpansion() ~= "vanilla" then return end + local module = ShaguTweaks:register({ title = "Enemy Castbars", description = "Shows an enemy castbar on target unit frame.", diff --git a/mods/target-debufftimer.lua b/mods/target-debufftimer.lua index 07a478e..bc0ee3a 100644 --- a/mods/target-debufftimer.lua +++ b/mods/target-debufftimer.lua @@ -1,5 +1,10 @@ local _G = _G or getfenv(0) local libdebuff = ShaguTweaks.libdebuff +local GetExpansion = ShaguTweaks.GetExpansion + +-- there are already debuff timers in tbc+ +if GetExpansion() ~= "vanilla" then return end + local module = ShaguTweaks:register({ title = "Debuff Timer", description = "Show debuff durations on the target unit frame.",