if select(2, ...).IS_LEGACY_CLIENT then return end -- HET-LEGACY-1207: no-op once Legacy1207 is deleted
-------------------------------------------------------------------------------
-- Innervate.lua
-- 12.1: tracked directly as buff 29166 on the player via the tracker's
-- AuraContainer slot. The legacy mana-cost polling workaround (and its
-- 7.8s approximated duration) is gone — the engine drives the visuals
-- with the aura's true duration.
-------------------------------------------------------------------------------
local addonName, ns = ...

local INNERVATE_ID = 29166

ns.RegisterTracker("innervate", {
    dbPrefix     = "inn_",
    displaySpell = INNERVATE_ID,
    buffSpellIDs = { INNERVATE_ID },
    frameSuffix  = "Innervate",
    label        = "Innervate Tracker",
    defaultPos   = { "CENTER", "CENTER", 0, 0 },

    voiceClip = "Interface\\AddOns\\BuzzardAuras\\Media\\Voice_Innervate.ogg",

    -- 12.1 preset: seeded into a fresh profile's elements (Core
    -- SeedPresets) so enabling the tracker shows the intended default
    -- straight away. Sparse element tables — every other field falls back
    -- to its runtime default (el.x or <default>), exactly like the legacy
    -- migration path. Circle #1963FF @ 85%.
    preset = {
        { style = "circle", circleRadius = 60, ringTexture = "Ring_20px",
          color = { 0.098039, 0.388235, 1.0, 0.85 } },
        { style = "sound", soundType = "voice", soundChannel = "Master" },
    },

    -- Legacy flat keys kept ONLY as the migration source (see Core).
    defaults = {
        enabled        = true,
        iconSize       = 40,
        trackerStyle   = "icon",
        cooldownSwipe  = true,
        barCircleColor = { 0.2, 0.5, 1.0, 1.0 },
        barOrientation = "horizontal",
        barWidth       = 200,
        barHeight      = 20,
        circleRadius   = 80,
        ringTexture    = "Ring_20px",
        position       = nil,
    },
})

ns.INNERVATE_ID = INNERVATE_ID
