mods: disable modules already existing in tbc

This commit is contained in:
shagu
2021-10-06 23:20:19 +02:00
parent ce3f867208
commit 5fef85ac7d
4 changed files with 14 additions and 0 deletions
+3
View File
@@ -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.",
+1
View File
@@ -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({
+5
View File
@@ -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.",
+5
View File
@@ -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.",