-- DynamicTooltips: Druid Spell Data (Retail)
-- Updated for The War Within / Midnight expansion
-- Spell Power coefficients for Retail WoW scaling system

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

-- Only load Retail data if running on Retail client
if DT.isRetail == false then return end

DT.ClassData.Druid = {
    -- ========================================================================
    -- BALANCE SPEC
    -- ========================================================================
    
    -- Wrath - Nature filler
    [190984] = { name = "Wrath", sp = 0.55, school = "Nature", type = "Direct", spec = "Balance" },
    
    -- Starfire - Arcane filler, cleaves in AoE
    [194153] = { name = "Starfire", sp = 0.80, school = "Arcane", type = "Direct", spec = "Balance" },
    
    -- Starsurge - Astral Power spender
    [78674] = { name = "Starsurge", sp = 1.35, school = "Astral", type = "Direct", spec = "Balance" },
    
    -- Starfall - AoE Astral Power spender
    [191034] = { name = "Starfall", sp = 0.25, school = "Astral", type = "DoT", duration = 8, isAoE = true, spec = "Balance" },
    
    -- Sunfire - Nature DoT with instant AoE application
    [164815] = { name = "Sunfire", sp = 0.12, school = "Nature", type = "Direct", dotSp = 0.15, duration = 18, isAoE = true, spec = "Balance" },
    
    -- Moonfire - Arcane DoT (used by Balance and Guardian)
    [164812] = { name = "Moonfire", sp = 0.10, school = "Arcane", type = "Direct", dotSp = 0.12, duration = 22, spec = "Balance/Guardian" },
    
    -- Stellar Flare - Talent DoT
    [202347] = { name = "Stellar Flare", sp = 0.18, school = "Astral", type = "Direct", dotSp = 0.20, duration = 24, spec = "Balance" },
    
    -- Wild Mushroom - Astral AoE
    [88747] = { name = "Wild Mushroom", sp = 0.65, school = "Nature", type = "Direct", isAoE = true, spec = "Balance" },
    
    -- Fury of Elune - Channeled beam AoE
    [202770] = { name = "Fury of Elune", sp = 0.30, school = "Astral", type = "Channel", duration = 8, isAoE = true, spec = "Balance" },
    
    -- Celestial Alignment - Major cooldown
    [194223] = { name = "Celestial Alignment", sp = 0, type = "Buff", duration = 20, spec = "Balance" },
    
    -- Incarnation: Chosen of Elune - Enhanced cooldown
    [102560] = { name = "Incarnation: Chosen of Elune", sp = 0, type = "Buff", duration = 30, spec = "Balance" },
    
    -- New Moon - First moon charge
    [274281] = { name = "New Moon", sp = 0.60, school = "Astral", type = "Direct", spec = "Balance" },
    
    -- Half Moon - Second moon charge
    [274282] = { name = "Half Moon", sp = 0.90, school = "Astral", type = "Direct", spec = "Balance" },
    
    -- Full Moon - Third moon charge
    [274283] = { name = "Full Moon", sp = 1.65, school = "Astral", type = "Direct", isAoE = true, spec = "Balance" },
    
    -- Shooting Stars - Passive proc damage
    [202497] = { name = "Shooting Stars", sp = 0.25, school = "Astral", type = "Direct", spec = "Balance" },
    
    -- Astral Smolder - DoT proc from crits
    [394058] = { name = "Astral Smolder", sp = 0.08, school = "Astral", type = "DoT", spec = "Balance" },
    
    -- Orbital Strike - Talent AoE
    [390378] = { name = "Orbital Strike", sp = 1.00, school = "Astral", type = "Direct", isAoE = true, spec = "Balance" },
    
    -- ========================================================================
    -- FERAL SPEC
    -- ========================================================================
    
    -- Rake - Bleed DoT with initial damage
    [155722] = { name = "Rake", ap = 0.18, school = "Physical", type = "Direct", dotAp = 0.25, duration = 15, spec = "Feral" },
    [1822] = { name = "Rake", ap = 0.18, school = "Physical", type = "Direct", dotAp = 0.25, duration = 15, note = "Main Spell ID", spec = "Feral" },
    
    -- Rip - Primary bleed finisher
    [1079] = { name = "Rip", ap = 0.35, school = "Physical", type = "DoT", duration = 24, spec = "Feral" },
    
    -- Shred - Primary generator
    [5221] = { name = "Shred", ap = 0.46, school = "Physical", type = "Direct", spec = "Feral" },
    
    -- Ferocious Bite - Direct damage finisher
    [22568] = { name = "Ferocious Bite", ap = 0.90, school = "Physical", type = "Direct", spec = "Feral" },
    
    -- Swipe (Cat) - AoE generator
    [106785] = { name = "Swipe", ap = 0.25, school = "Physical", type = "Direct", isAoE = true, spec = "Feral" },
    
    -- Thrash (Cat) - AoE bleed
    [106830] = { name = "Thrash", ap = 0.10, school = "Physical", type = "Direct", dotAp = 0.15, duration = 15, isAoE = true, spec = "Feral" },
    
    -- Tiger's Fury - Offensive cooldown
    [5217] = { name = "Tiger's Fury", sp = 0, type = "Buff", duration = 10, spec = "Feral" },
    
    -- Berserk - Major damage cooldown
    [106951] = { name = "Berserk", sp = 0, type = "Buff", duration = 20, spec = "Feral" },
    
    -- Incarnation: Avatar of Ashamane - Enhanced Berserk
    [102543] = { name = "Incarnation: Avatar of Ashamane", sp = 0, type = "Buff", duration = 30, spec = "Feral" },
    
    -- Savage Roar - Damage buff
    [52610] = { name = "Savage Roar", sp = 0, type = "Buff", spec = "Feral" },
    
    -- Primal Wrath - AoE Rip applicator
    [285381] = { name = "Primal Wrath", ap = 0.50, school = "Physical", type = "Direct", isAoE = true, spec = "Feral" },
    
    -- Brutal Slash - Talent AoE
    [202028] = { name = "Brutal Slash", ap = 0.55, school = "Physical", type = "Direct", isAoE = true, spec = "Feral" },
    
    -- Feral Frenzy - Talent burst damage
    [274837] = { name = "Feral Frenzy", ap = 0.70, school = "Physical", type = "Direct", dotAp = 0.60, duration = 6, spec = "Feral" },
    
    -- Moonfire (Feral) - Lunar Inspiration talent
    [155625] = { name = "Moonfire", sp = 0.08, school = "Arcane", type = "Direct", dotSp = 0.10, duration = 16, spec = "Feral" },
    
    -- Adaptive Swarm - Spreading DoT/HoT
    [391889] = { name = "Adaptive Swarm", sp = 0.20, school = "Nature", type = "DoT", duration = 12, spec = "Feral" },
    
    -- ========================================================================
    -- GUARDIAN SPEC
    -- ========================================================================
    
    -- Mangle - Primary generator
    [33917] = { name = "Mangle", ap = 0.52, school = "Physical", type = "Direct", spec = "Guardian" },
    
    -- Thrash (Bear) - Primary AoE bleed
    [77758] = { name = "Thrash", ap = 0.15, school = "Physical", type = "Direct", dotAp = 0.18, duration = 15, isAoE = true, stacks = 3, spec = "Guardian" },
    
    -- Galactic Guardian - Moonfire proc buff (Moonfire damage entry is in Balance section)
    [213708] = { name = "Galactic Guardian", sp = 0, type = "Buff", spec = "Guardian" },
    
    -- Maul - Rage spender, high damage
    [6807] = { name = "Maul", ap = 0.60, school = "Physical", type = "Direct", spec = "Guardian" },
    
    -- Swipe (Bear) - AoE generator
    [213771] = { name = "Swipe", ap = 0.30, school = "Physical", type = "Direct", isAoE = true, spec = "Guardian" },
    
    -- Ironfur - Main active mitigation
    [192081] = { name = "Ironfur", sp = 0, type = "Buff", duration = 7, spec = "Guardian" },
    
    -- Frenzied Regeneration - Active heal
    [22842] = { name = "Frenzied Regeneration", sp = 0.25, school = "Nature", type = "HoT", duration = 3, isHeal = true, spec = "Guardian" },
    
    -- Barkskin - Damage reduction
    [22812] = { name = "Barkskin", sp = 0, type = "Defensive", duration = 12, spec = "Guardian" },
    
    -- Survival Instincts - Major defensive
    [61336] = { name = "Survival Instincts", sp = 0, type = "Defensive", duration = 6, spec = "Guardian" },
    
    -- Incarnation: Guardian of Ursoc - Enhanced defensive cooldown
    [102558] = { name = "Incarnation: Guardian of Ursoc", sp = 0, type = "Buff", duration = 30, spec = "Guardian" },
    
    -- Rage of the Sleeper - Offensive/defensive cooldown
    [200851] = { name = "Rage of the Sleeper", sp = 0.08, school = "Physical", type = "Reflect", duration = 10, spec = "Guardian" },
    
    -- Pulverize - Finisher talent
    [80313] = { name = "Pulverize", ap = 0.65, school = "Physical", type = "Direct", spec = "Guardian" },
    
    -- Raze - Berserk empowered Maul
    [400254] = { name = "Raze", ap = 0.75, school = "Physical", type = "Direct", isAoE = true, spec = "Guardian" },
    
    -- Tooth and Claw - Proc buff
    [135286] = { name = "Tooth and Claw", sp = 0, type = "Buff", spec = "Guardian" },
    
    -- ========================================================================
    -- RESTORATION SPEC
    -- ========================================================================
    
    -- Rejuvenation - Primary HoT
    [774] = { name = "Rejuvenation", sp = 0.75, school = "Nature", type = "HoT", duration = 15, isHeal = true, spec = "Restoration" },
    
    -- Germination (Second Rejuv)
    [155777] = { name = "Rejuvenation (Germination)", sp = 0.75, school = "Nature", type = "HoT", duration = 15, isHeal = true, spec = "Restoration" },
    
    -- Regrowth - Direct + HoT combo
    [8936] = { name = "Regrowth", sp = 1.20, school = "Nature", type = "Direct", hotSp = 0.35, duration = 12, isHeal = true, spec = "Restoration" },
    
    -- Wild Growth - Multi-target HoT
    [48438] = { name = "Wild Growth", sp = 0.60, school = "Nature", type = "HoT", duration = 7, isAoE = true, isHeal = true, spec = "Restoration" },
    
    -- Lifebloom - Stacking HoT with bloom
    [33763] = { name = "Lifebloom", sp = 0.24, school = "Nature", type = "HoT", duration = 15, bloomSp = 0.80, isHeal = true, spec = "Restoration" },
    
    -- Swiftmend - Instant direct heal
    [18562] = { name = "Swiftmend", sp = 1.50, school = "Nature", type = "Direct", isHeal = true, spec = "Restoration" },
    
    -- Efflorescence - Ground-targeted HoT
    [145205] = { name = "Efflorescence", sp = 0.18, school = "Nature", type = "HoT", isAoE = true, isHeal = true, spec = "Restoration" },
    
    -- Tranquility - Major healing cooldown
    [740] = { name = "Tranquility", sp = 0.65, school = "Nature", type = "Channel", duration = 8, isAoE = true, isHeal = true, spec = "Restoration" },
    
    -- Cenarion Ward - Triggered HoT
    [102351] = { name = "Cenarion Ward", sp = 1.00, school = "Nature", type = "HoT", duration = 8, isHeal = true, spec = "Restoration" },
    
    -- Flourish - Extends HoTs
    [197721] = { name = "Flourish", sp = 0, type = "Buff", spec = "Restoration" },
    
    -- Ironbark - External defensive
    [102342] = { name = "Ironbark", sp = 0, type = "Defensive", duration = 12, spec = "Restoration" },
    
    -- Nature's Swiftness - Instant cast buff
    [132158] = { name = "Nature's Swiftness", sp = 0, type = "Buff", spec = "Restoration" },
    
    -- Nourish - Efficient direct heal
    [50464] = { name = "Nourish", sp = 1.40, school = "Nature", type = "Direct", isHeal = true, spec = "Restoration" },
    
    -- Grove Guardians - Summon treants
    [102693] = { name = "Grove Guardians", sp = 0.50, school = "Nature", type = "Summon", isHeal = true, spec = "Restoration" },
    
    -- Adaptive Swarm (Resto) - Spreading HoT
    [391888] = { name = "Adaptive Swarm", sp = 0.25, school = "Nature", type = "HoT", duration = 12, isHeal = true, spec = "Restoration" },
    
    -- Overgrowth - Applies all HoTs
    [203651] = { name = "Overgrowth", sp = 0, type = "Buff", isHeal = true, spec = "Restoration" },
    
    -- Soul of the Forest - Passive buff
    [158478] = { name = "Soul of the Forest", sp = 0, type = "Buff", spec = "Restoration" },
    
    -- Reforestation - Improved Incarnation
    [392356] = { name = "Reforestation", sp = 0, type = "Passive", spec = "Restoration" },
    
    -- Incarnation: Tree of Life - Enhanced healing form
    [33891] = { name = "Incarnation: Tree of Life", sp = 0, type = "Buff", duration = 30, spec = "Restoration" },
    
    -- ========================================================================
    -- SHARED ABILITIES (All Specs)
    -- ========================================================================
    
    -- Moonkin Form - Balance shapeshift
    [24858] = { name = "Moonkin Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Cat Form - Feral shapeshift
    [768] = { name = "Cat Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Bear Form - Guardian shapeshift
    [5487] = { name = "Bear Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Travel Form - Movement shapeshift
    [783] = { name = "Travel Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Aquatic Form - Swim speed shapeshift
    [276012] = { name = "Aquatic Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Flight Form - Flying shapeshift
    [276029] = { name = "Flight Form", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Rebirth - Battle resurrection
    [20484] = { name = "Rebirth", sp = 0, type = "Utility", spec = "All" },
    
    -- Innervate - Mana restoration
    [29166] = { name = "Innervate", sp = 0, type = "Buff", duration = 10, spec = "All" },
    
    -- Dash - Cat movement speed
    [1850] = { name = "Dash", sp = 0, type = "Buff", duration = 10, spec = "All" },
    
    -- Stampeding Roar - Raid movement speed
    [106898] = { name = "Stampeding Roar", sp = 0, type = "Buff", duration = 8, isAoE = true, spec = "All" },
    
    -- Entangling Roots - Root CC
    [339] = { name = "Entangling Roots", sp = 0, type = "CC", duration = 30, spec = "All" },
    
    -- Mass Entanglement - AoE root
    [102359] = { name = "Mass Entanglement", sp = 0, type = "CC", duration = 30, isAoE = true, spec = "All" },
    
    -- Cyclone - Banish CC
    [33786] = { name = "Cyclone", sp = 0, type = "CC", duration = 6, spec = "All" },
    
    -- Hibernate - Beast CC
    [2637] = { name = "Hibernate", sp = 0, type = "CC", duration = 40, spec = "All" },
    
    -- Soothe - Enrage dispel
    [2908] = { name = "Soothe", sp = 0, type = "Utility", spec = "All" },
    
    -- Remove Corruption - Dispel
    [2782] = { name = "Remove Corruption", sp = 0, type = "Utility", spec = "All" },
    
    -- Nature's Cure - Healer dispel
    [88423] = { name = "Nature's Cure", sp = 0, type = "Utility", spec = "Restoration" },
    
    -- Wild Charge - Movement ability
    [102401] = { name = "Wild Charge", sp = 0, type = "Utility", spec = "All" },
    
    -- Skull Bash - Interrupt
    [106839] = { name = "Skull Bash", sp = 0, type = "Utility", spec = "All" },
    
    -- Solar Beam - Balance interrupt
    [78675] = { name = "Solar Beam", sp = 0, type = "Utility", spec = "Balance" },
    
    -- Prowl - Stealth
    [5215] = { name = "Prowl", sp = 0, type = "Utility", spec = "All" },
    
    -- Mark of the Wild - Buff
    [1126] = { name = "Mark of the Wild", sp = 0, type = "Buff", spec = "All" },
    
    -- ========================================================================
    -- HERO TALENTS - KEEPER OF THE GROVE (Restoration/Balance)
    -- ========================================================================
    
    -- Grove's Inspiration - Treant enhancement
    [428539] = { name = "Grove's Inspiration", sp = 0, type = "Passive", spec = "Keeper of the Grove" },
    
    -- Power of the Dream - HoT enhancement
    [428540] = { name = "Power of the Dream", sp = 0, type = "Passive", spec = "Keeper of the Grove" },
    
    -- Dream Surge - Treant spawns additional treant
    [433831] = { name = "Dream Surge", sp = 0.45, school = "Nature", type = "Direct", isHeal = true, spec = "Keeper of the Grove" },
    
    -- Cenarius' Guidance - Enhanced Grove Guardians
    [428542] = { name = "Cenarius' Guidance", sp = 0, type = "Buff", spec = "Keeper of the Grove" },
    
    -- Protective Growth - Damage reduction HoT
    [433748] = { name = "Protective Growth", sp = 0.12, school = "Nature", type = "HoT", isHeal = true, spec = "Keeper of the Grove" },
    
    -- Early Spring - Extra treant
    [428538] = { name = "Early Spring", sp = 0, type = "Passive", spec = "Keeper of the Grove" },
    
    -- Harmony of the Grove - Treant buff
    [428543] = { name = "Harmony of the Grove", sp = 0, type = "Buff", spec = "Keeper of the Grove" },
    
    -- Treants of the Moon - Treants cast Moonfire
    [428544] = { name = "Treants of the Moon", sp = 0.08, school = "Arcane", type = "Direct", dotSp = 0.06, spec = "Keeper of the Grove" },
    
    -- Blooming Infusion - Enhanced Lifebloom
    [429433] = { name = "Blooming Infusion", sp = 0, type = "Buff", spec = "Keeper of the Grove" },
    
    -- ========================================================================
    -- HERO TALENTS - WILDSTALKER (Restoration/Feral)
    -- ========================================================================
    
    -- Bloodseeker Vines - DoT procs
    [439528] = { name = "Bloodseeker Vines", sp = 0.15, school = "Nature", type = "DoT", spec = "Wildstalker" },
    
    -- Thriving Growth - HoT procs vines
    [439527] = { name = "Thriving Growth", sp = 0, type = "Passive", spec = "Wildstalker" },
    
    -- Strategic Infusion - Buff based on form
    [439532] = { name = "Strategic Infusion", sp = 0, type = "Buff", spec = "Wildstalker" },
    
    -- Entangling Vortex - Root proc
    [439534] = { name = "Entangling Vortex", sp = 0, type = "CC", spec = "Wildstalker" },
    
    -- Resilient Flourishing - Vine duration
    [439535] = { name = "Resilient Flourishing", sp = 0, type = "Passive", spec = "Wildstalker" },
    
    -- Root Network - Vine spread
    [439536] = { name = "Root Network", sp = 0, type = "Passive", spec = "Wildstalker" },
    
    -- Hunt Beneath the Open Skies - Shred empowerment
    [439539] = { name = "Hunt Beneath the Open Skies", sp = 0, type = "Buff", spec = "Wildstalker" },
    
    -- Bond with Nature - Vine healing
    [439541] = { name = "Bond with Nature", sp = 0.10, school = "Nature", type = "HoT", isHeal = true, spec = "Wildstalker" },
    
    -- Vigorous Creepers - Enhanced vine damage
    [439543] = { name = "Vigorous Creepers", sp = 0, type = "Passive", spec = "Wildstalker" },
    
    -- ========================================================================
    -- HERO TALENTS - DRUID OF THE CLAW (Guardian/Feral)
    -- ========================================================================
    
    -- Ravage - Enhanced opener/finisher
    [441583] = { name = "Ravage", ap = 0.85, school = "Physical", type = "Direct", spec = "Druid of the Claw" },
    
    -- Dreadful Wound - Bleed debuff
    [441585] = { name = "Dreadful Wound", ap = 0.20, school = "Physical", type = "DoT", duration = 10, spec = "Druid of the Claw" },
    
    -- Aggravate Wounds - Increased bleed damage
    [441589] = { name = "Aggravate Wounds", sp = 0, type = "Buff", spec = "Druid of the Claw" },
    
    -- Strike for the Heart - Crit enhancement
    [441593] = { name = "Strike for the Heart", sp = 0, type = "Passive", spec = "Druid of the Claw" },
    
    -- Packs Endurance - Stamina buff
    [441594] = { name = "Packs Endurance", sp = 0, type = "Passive", spec = "Druid of the Claw" },
    
    -- Bestial Strength - Attack power buff
    [441598] = { name = "Bestial Strength", sp = 0, type = "Buff", spec = "Druid of the Claw" },
    
    -- Wildpower Surge - Resource generation
    [441600] = { name = "Wildpower Surge", sp = 0, type = "Buff", spec = "Druid of the Claw" },
    
    -- Empowered Shapeshifting - Form bonuses
    [441605] = { name = "Empowered Shapeshifting", sp = 0, type = "Passive", spec = "Druid of the Claw" },
    
    -- Killing Strikes - Execute enhancement
    [441609] = { name = "Killing Strikes", sp = 0, type = "Passive", spec = "Druid of the Claw" },
    
    -- Claw Rampage - AoE damage proc
    [441613] = { name = "Claw Rampage", ap = 0.45, school = "Physical", type = "Direct", isAoE = true, spec = "Druid of the Claw" },
    
    -- ========================================================================
    -- HERO TALENTS - ELUNE'S CHOSEN (Balance/Guardian)
    -- ========================================================================
    
    -- Lunar Insight - Moonfire enhancement
    [428541] = { name = "Lunar Insight", sp = 0, type = "Passive", spec = "Elune's Chosen" },
    
    -- Boundless Moonlight - Enhanced Moon spells
    [424058] = { name = "Boundless Moonlight", sp = 0, type = "Passive", spec = "Elune's Chosen" },
    
    -- The Light of Elune - Healing proc
    [428654] = { name = "The Light of Elune", sp = 0.35, school = "Arcane", type = "Direct", isHeal = true, spec = "Elune's Chosen" },
    
    -- Lunar Beam - Ground beam healing and damage
    [204066] = { name = "Lunar Beam", sp = 0.25, school = "Arcane", type = "Direct", isAoE = true, isHeal = true, spec = "Elune's Chosen" },
    
    -- Moon Guardian - Form enhancement
    [428655] = { name = "Moon Guardian", sp = 0, type = "Buff", spec = "Elune's Chosen" },
    
    -- Glistening Fur - Damage reduction
    [428656] = { name = "Glistening Fur", sp = 0, type = "Defensive", spec = "Elune's Chosen" },
    
    -- Astral Insight - Astral Power generation
    [428657] = { name = "Astral Insight", sp = 0, type = "Passive", spec = "Elune's Chosen" },
    
    -- Moondust - Moonfire damage increase
    [428658] = { name = "Moondust", sp = 0, type = "Buff", spec = "Elune's Chosen" },
    
    -- Arcane Affinity - Arcane damage increase
    [428659] = { name = "Arcane Affinity", sp = 0, type = "Passive", spec = "Elune's Chosen" },
    
    -- Stellar Command - Starfall enhancement
    [428660] = { name = "Stellar Command", sp = 0, type = "Passive", spec = "Elune's Chosen" },
}
