mods: disable modules already existing in tbc
This commit is contained in:
@@ -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,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({
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user