-- DynamicTooltips: Death Knight Spell Data
-- Retail Midnight Spell Scaling Data for Death Knight class
-- Note: Retail uses dynamic scaling, coefficients are approximate

local _, DT = ...
DT.ClassData = DT.ClassData or {}

DT.ClassData.DeathKnight = {
    -- ========================================================================
    -- BLOOD (Tank Spec)
    -- ========================================================================
    [49998] = { name = "Death Strike", ap = 0.9424, type = "Melee", school = "Physical", isHeal = true, healAp = 0.25 },
    [195182] = { name = "Marrowrend", ap = 0.5664, type = "Melee", school = "Physical" },
    [206930] = { name = "Heart Strike", ap = 0.3185, type = "Melee", school = "Physical" },
    [50842] = { name = "Blood Boil", ap = 0.256, type = "Direct", school = "Shadow", isAoE = true },
    [55233] = { name = "Vampiric Blood", type = "Buff", isHeal = true, note = "30% max HP + 30% healing received" },
    [49028] = { name = "Dancing Rune Weapon", ap = 0.5, type = "Buff", duration = 8 },
    [194844] = { name = "Bonestorm", ap = 0.12, type = "Channel", school = "Shadow", isAoE = true, isHeal = true },
    [274156] = { name = "Consumption", ap = 0.8, type = "Direct", school = "Shadow", isAoE = true, isHeal = true },
    
    -- ========================================================================
    -- FROST (Melee DPS)
    -- ========================================================================
    [49143] = { name = "Frost Strike", ap = 1.14, type = "Melee", school = "Frost" },
    [49184] = { name = "Howling Blast", ap = 0.175, type = "Direct", school = "Frost", isAoE = true },
    [49020] = { name = "Obliterate", ap = 1.41, type = "Melee", school = "Physical" },
    [196770] = { name = "Remorseless Winter", ap = 0.125, type = "DoT", school = "Frost", isAoE = true, duration = 8 },
    [305392] = { name = "Chill Streak", ap = 0.85, type = "Direct", school = "Frost", bounces = 9 },
    [279302] = { name = "Frostwyrm's Fury", ap = 2.64, type = "Direct", school = "Frost", isAoE = true },
    [47568] = { name = "Empower Rune Weapon", type = "Buff", note = "Generate 15 Runic Power + 5 Runes" },
    [51271] = { name = "Pillar of Frost", type = "Buff", note = "+25% Strength", duration = 12 },
    [152279] = { name = "Breath of Sindragosa", ap = 0.56, type = "Channel", school = "Frost", isAoE = true },
    [207230] = { name = "Frostscythe", ap = 0.455, type = "Melee", school = "Frost", isAoE = true },
    
    -- ========================================================================
    -- UNHOLY (Melee DPS + Pets)
    -- ========================================================================
    [55090] = { name = "Scourge Strike", ap = 0.5565, type = "Melee", school = "Shadow", shadowAp = 0.44 },
    [85948] = { name = "Festering Strike", ap = 1.05, type = "Melee", school = "Physical", appliesWounds = 2 },
    [77575] = { name = "Outbreak", ap = 0.3906, type = "Direct", school = "Shadow", appliesDisease = true },
    [191587] = { name = "Virulent Plague", ap = 0.275, type = "DoT", school = "Shadow", duration = 27, ticks = 9 },
    [63560] = { name = "Dark Transformation", type = "Buff", school = "Shadow", note = "Empower pet", duration = 15 },
    [275699] = { name = "Apocalypse", ap = 0.66, type = "Melee", school = "Shadow", burstWounds = 4, summonGhouls = 4 },
    [42650] = { name = "Army of the Dead", type = "Channel", school = "Shadow", summonGhouls = 8, duration = 30 },
    [207317] = { name = "Epidemic", ap = 0.192, type = "Direct", school = "Shadow", isAoE = true },
    [207311] = { name = "Clawing Shadows", ap = 0.5565, type = "Melee", school = "Shadow" },
    [115989] = { name = "Unholy Blight", ap = 0.18, type = "DoT", school = "Shadow", duration = 6 },
    [49206] = { name = "Summon Gargoyle", type = "Pet", school = "Shadow", duration = 25 },
    
    -- ========================================================================
    -- SHARED / CORE ABILITIES
    -- ========================================================================
    [47541] = { name = "Death Coil", ap = 0.696, type = "Direct", school = "Shadow" },
    [43265] = { name = "Death and Decay", ap = 0.098, type = "DoT", school = "Shadow", isAoE = true, duration = 10, ticks = 10 },
    [48707] = { name = "Anti-Magic Shell", type = "Shield", school = "Shadow", note = "Absorbs 30% max HP magic" },
    [48792] = { name = "Icebound Fortitude", type = "Buff", note = "30% damage reduction", duration = 8 },
    [49576] = { name = "Death Grip", type = "Utility", school = "Shadow" },
    [47528] = { name = "Mind Freeze", type = "Interrupt", school = "Shadow" },
    [45524] = { name = "Chains of Ice", ap = 0.18, type = "Direct", school = "Frost", appliesSlow = true },
    [3714] = { name = "Path of Frost", type = "Utility", note = "Water walking" },
    [46585] = { name = "Raise Dead", type = "Pet", school = "Shadow", note = "Summon ghoul" },
    [61999] = { name = "Raise Ally", type = "Utility", school = "Shadow", note = "Battle resurrection" },
    [327574] = { name = "Sacrificial Pact", type = "Shield", school = "Shadow", note = "25% max HP absorb" },
    [48743] = { name = "Death Pact", type = "Direct", school = "Shadow", isHeal = true, note = "50% max HP heal" },
    [111673] = { name = "Control Undead", type = "Utility", school = "Shadow", note = "Mind control undead" },
    
    -- ========================================================================
    -- HERO TALENTS: SAN'LAYN (Blood + Unholy)
    -- ========================================================================
    [433895] = { name = "Vampiric Strike", ap = 0.4, type = "Melee", school = "Shadow", isHeal = true },
    [434153] = { name = "Incite Terror", ap = 0.25, type = "Direct", school = "Shadow", isAoE = true },
    [434033] = { name = "Gift of the San'layn", type = "Buff", note = "Haste + Leech increase" },
    
    -- ========================================================================
    -- HERO TALENTS: RIDER OF THE APOCALYPSE (Frost + Unholy)
    -- ========================================================================
    [444347] = { name = "Horsemen's Aid", type = "Buff", note = "Horsemen assist attacks" },
    [444504] = { name = "Apocalyptic Conquest", ap = 1.5, type = "Direct", school = "Shadow", isAoE = true },
    
    -- ========================================================================
    -- HERO TALENTS: DEATHBRINGER (Blood + Frost)
    -- ========================================================================
    [444135] = { name = "Reaper's Mark", ap = 0.6, type = "Direct", school = "Shadow" },
    [444269] = { name = "Wave of Souls", ap = 1.2, type = "Direct", school = "Shadow", isAoE = true },
    
    -- ========================================================================
    -- PET ABILITIES - GHOUL (Raise Dead / Unholy Permanent)
    -- ========================================================================
    
    -- Claw - Ghoul primary attack
    [47468] = { name = "Claw", ap = 0.40, school = "Physical", type = "Direct", isPet = true, petName = "Ghoul" },
    
    -- Sweeping Claws - Ghoul AoE attack (Unholy talent)
    [91778] = { name = "Sweeping Claws", ap = 0.30, school = "Physical", type = "Direct", isAoE = true, isPet = true, petName = "Ghoul" },
    
    -- Gnaw - Ghoul stun
    [91800] = { name = "Gnaw", ap = 0, type = "CC", isPet = true, petName = "Ghoul" },
    
    -- Monstrous Blow - Ghoul stun (Dark Transformation empowered version)
    [91797] = { name = "Monstrous Blow", ap = 0.15, school = "Physical", type = "CC", isPet = true, petName = "Ghoul" },
    
    -- Leap - Ghoul gap closer
    [47482] = { name = "Leap", ap = 0.20, school = "Physical", type = "Direct", isPet = true, petName = "Ghoul" },
    
    -- Huddle - Ghoul defensive cooldown
    [47484] = { name = "Huddle", ap = 0, type = "Defensive", duration = 10, isPet = true, petName = "Ghoul" },
    
    -- ========================================================================
    -- PET ABILITIES - DARK TRANSFORMED GHOUL (Unholy)
    -- ========================================================================
    
    -- Vile Eruption (Dark Transformation attack replacement)
    [390279] = { name = "Vile Eruption", ap = 0.55, school = "Shadow", type = "Direct", isAoE = true, isPet = true, petName = "Ghoul" },
    
    -- Shambling Rush (Dark Transformation leap replacement)  
    [390277] = { name = "Shambling Rush", ap = 0.30, school = "Physical", type = "Direct", isPet = true, petName = "Ghoul" },
    
    -- ========================================================================
    -- PET ABILITIES - GARGOYLE (Unholy Cooldown)
    -- ========================================================================
    
    -- Gargoyle Strike - Gargoyle basic attack
    [51963] = { name = "Gargoyle Strike", ap = 0.75, school = "Shadow", type = "Direct", isPet = true, petName = "Gargoyle" },
    
    -- Dark Empowerment - Gargoyle inherits haste (passive)
    [211947] = { name = "Dark Empowerment", ap = 0, type = "Passive", isPet = true, petName = "Gargoyle" },
    
    -- ========================================================================
    -- PET ABILITIES - ARMY OF THE DEAD GHOULS
    -- ========================================================================
    
    -- Army Ghoul Claw
    [199373] = { name = "Claw", ap = 0.25, school = "Physical", type = "Direct", isPet = true, petName = "Army Ghoul" },
    
    -- Bursting Sores (triggers from Army ghouls popping wounds)
    [207264] = { name = "Bursting Sores", ap = 0.15, school = "Shadow", type = "Direct", isAoE = true, isPet = true, note = "Wound burst" },
    
    -- ========================================================================
    -- PET ABILITIES - APOCALYPSE GHOULS (MAGUS OF THE DEAD)
    -- ========================================================================
    
    -- Magus of the Dead - Frostbolt
    [288548] = { name = "Frostbolt", ap = 0.40, school = "Frost", type = "Direct", isPet = true, petName = "Magus of the Dead" },
    
    -- Magus of the Dead - Shadow Bolt  
    [288546] = { name = "Shadow Bolt", ap = 0.40, school = "Shadow", type = "Direct", isPet = true, petName = "Magus of the Dead" },
    
    -- ========================================================================
    -- PET ABILITIES - DANCING RUNE WEAPON (Blood)
    -- ========================================================================
    
    -- Dancing Rune Weapon copies player attacks (no separate spell IDs for copies)
    -- Heart Strike copied
    [228645] = { name = "Heart Strike", ap = 0.25, school = "Physical", type = "Direct", isPet = true, petName = "Dancing Rune Weapon" },
    
    -- Marrowrend copied  
    [228649] = { name = "Marrowrend", ap = 0.45, school = "Physical", type = "Direct", isPet = true, petName = "Dancing Rune Weapon" },
    
    -- ========================================================================
    -- PET ABILITIES - BLOODWORMS (Blood talent)
    -- ========================================================================
    
    -- Bloodworm - Blood Burst (heals owner on expiration)
    [197509] = { name = "Blood Burst", ap = 0, type = "Heal", isHeal = true, isPet = true, petName = "Bloodworm" },
    
    -- ========================================================================
    -- HERO PET ABILITIES - HORSEMEN (Rider of the Apocalypse)
    -- ========================================================================
    
    -- Mograine's Might (Ashbringer strike)
    [444502] = { name = "Mograine's Might", ap = 0.60, school = "Holy", type = "Direct", isPet = true, petName = "Horseman" },
    
    -- Whitemane's Famine (Life drain)
    [444506] = { name = "Whitemane's Famine", ap = 0.45, school = "Shadow", type = "Direct", isHeal = true, isPet = true, petName = "Horseman" },
    
    -- Nazgrim's March (AoE cleave)
    [444509] = { name = "Nazgrim's March", ap = 0.35, school = "Physical", type = "Direct", isAoE = true, isPet = true, petName = "Horseman" },
    
    -- Trollbane's Icy Fury (Frost burst)
    [444511] = { name = "Trollbane's Icy Fury", ap = 0.50, school = "Frost", type = "Direct", isPet = true, petName = "Horseman" },
}
