core: move expansion checks into module header

This commit is contained in:
shagu
2021-10-10 12:14:46 +02:00
parent 81efaea6a9
commit ebe5d91a3a
27 changed files with 52 additions and 52 deletions
+1 -5
View File
@@ -3,14 +3,10 @@ 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.",
expansions = { ["vanilla"] = true, ["tbc"] = nil },
enabled = true,
})