-- DynamicTooltips: Shaman 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.Shaman = {
    -- ========================================================================
    -- ELEMENTAL SPEC
    -- ========================================================================
    
    -- Lightning Bolt - Primary Nature filler
    [188196] = { name = "Lightning Bolt", sp = 0.70, school = "Nature", type = "Direct", spec = "Elemental" },
    
    -- Chain Lightning - AoE Nature spell
    [188443] = { name = "Chain Lightning", sp = 0.52, school = "Nature", type = "Direct", isAoE = true, chainTargets = 5, spec = "Elemental" },
    
    -- Lava Burst - Fire damage, guaranteed crit with Flame Shock
    [51505] = { name = "Lava Burst", sp = 0.94, school = "Fire", type = "Direct", spec = "Elemental" },
    
    -- Earth Shock - Maelstrom spender, single target
    [8042] = { name = "Earth Shock", sp = 1.20, school = "Nature", type = "Direct", spec = "Elemental" },
    
    -- Earthquake - AoE Maelstrom spender, ground effect
    [61882] = { name = "Earthquake", sp = 0.22, school = "Physical", type = "Channel", duration = 6, isAoE = true, spec = "Elemental" },
    
    -- Flame Shock - Fire DoT, enables Lava Burst crit
    [188389] = { name = "Flame Shock", sp = 0.12, school = "Fire", type = "Direct", dotSp = 0.60, duration = 18, spec = "Elemental/Enhancement" },
    
    -- Frost Shock - Frost damage with slow
    [196840] = { name = "Frost Shock", sp = 0.50, school = "Frost", type = "Direct", spec = "Elemental/Enhancement" },
    
    -- Icefury - Frost burst damage, empowers Frost Shock
    [210714] = { name = "Icefury", sp = 0.85, school = "Frost", type = "Direct", spec = "Elemental" },
    
    -- Stormkeeper - Lightning empowerment cooldown
    [191634] = { name = "Stormkeeper", sp = 0, type = "Buff", duration = 15, charges = 2, spec = "Elemental" },
    
    -- Electrified Shocks - Stormkeeper empowered damage
    [382086] = { name = "Electrified Shocks", sp = 0.15, school = "Nature", type = "Direct", isAoE = true, spec = "Elemental" },
    
    -- Fire Elemental - Major DPS cooldown summon
    [198067] = { name = "Fire Elemental", sp = 0, type = "Summon", duration = 30, spec = "Elemental" },
    
    -- Storm Elemental - Alternative elemental summon
    [192249] = { name = "Storm Elemental", sp = 0, type = "Summon", duration = 30, spec = "Elemental" },
    
    -- Eye of the Storm (Storm Elemental ability) - AoE damage
    [157375] = { name = "Eye of the Storm", sp = 0.35, school = "Nature", type = "Channel", isAoE = true, spec = "Elemental" },
    
    -- Call Lightning (Storm Elemental ability) - Lightning strikes
    [157348] = { name = "Call Lightning", sp = 0.50, school = "Nature", type = "Direct", spec = "Elemental" },
    
    -- Elemental Blast - Hard-hitting talent ability
    [117014] = { name = "Elemental Blast", sp = 1.35, school = "Nature", type = "Direct", spec = "Elemental" },
    
    -- Liquid Magma Totem - AoE Fire ground effect
    [192222] = { name = "Liquid Magma Totem", sp = 0.18, school = "Fire", type = "Summon", duration = 6, isAoE = true, spec = "Elemental" },
    
    -- Primordial Wave - Nature damage + Flame Shock spread (Ele) / Healing Wave spread (Resto)
    [375982] = { name = "Primordial Wave", sp = 0.65, school = "Nature", type = "Direct", healSp = 0.80, spec = "Elemental/Restoration" },
    
    -- Lava Surge - Proc buff for instant Lava Burst
    [77762] = { name = "Lava Surge", sp = 0, type = "Buff", spec = "Elemental" },
    
    -- Master of the Elements - Buff from Lava Burst
    [260734] = { name = "Master of the Elements", sp = 0, type = "Buff", note = "+20% next Nature/Frost/Physical", spec = "Elemental" },
    
    -- Surge of Power - Earth Shock empowerment
    [285514] = { name = "Surge of Power", sp = 0, type = "Buff", spec = "Elemental" },
    
    -- Lightning Rod - Chain Lightning enhancement
    [210689] = { name = "Lightning Rod", sp = 0, type = "Debuff", spec = "Elemental" },
    
    -- Ascendance (Elemental) - Major cooldown
    [114050] = { name = "Ascendance", sp = 0, type = "Buff", duration = 15, spec = "Elemental" },
    
    -- Lava Beam (Ascendance) - Chain Lightning replacement
    [114074] = { name = "Lava Beam", sp = 0.65, school = "Fire", type = "Direct", isAoE = true, chainTargets = 5, spec = "Elemental" },
    
    -- Deeply Rooted Elements - Ascendance proc talent
    [378270] = { name = "Deeply Rooted Elements", sp = 0, type = "Passive", spec = "Elemental" },
    
    -- ========================================================================
    -- ENHANCEMENT SPEC
    -- ========================================================================
    
    -- Stormstrike - Primary melee attack
    [17364] = { name = "Stormstrike", ap = 0.42, school = "Physical", type = "Direct", spec = "Enhancement" },
    
    -- Windstrike (Ascendance) - Empowered Stormstrike
    [115356] = { name = "Windstrike", ap = 0.50, school = "Physical", type = "Direct", spec = "Enhancement" },
    
    -- Lava Lash - Offhand fire attack
    [60103] = { name = "Lava Lash", ap = 0.58, school = "Fire", type = "Direct", spec = "Enhancement" },
    
    -- Crash Lightning - AoE melee attack
    [187874] = { name = "Crash Lightning", ap = 0.35, school = "Nature", type = "Direct", isAoE = true, spec = "Enhancement" },
    
    -- Ice Strike - Frost melee talent
    [342240] = { name = "Ice Strike", ap = 0.55, school = "Frost", type = "Direct", spec = "Enhancement" },
    
    -- Windfury Attack - Proc damage from Windfury Weapon
    [25504] = { name = "Windfury Attack", ap = 0.32, school = "Physical", type = "Direct", spec = "Enhancement" },
    
    -- Windfury Weapon - Imbue buff
    [33757] = { name = "Windfury Weapon", sp = 0, type = "Buff", spec = "Enhancement" },
    
    -- Flametongue Weapon - Imbue buff
    [318038] = { name = "Flametongue Weapon", sp = 0, type = "Buff", spec = "Enhancement" },
    
    -- Flametongue Attack - Proc damage from Flametongue
    [10444] = { name = "Flametongue Attack", sp = 0.18, school = "Fire", type = "Direct", spec = "Enhancement" },
    
    -- Hot Hand - Lava Lash enhancement proc
    [201900] = { name = "Hot Hand", sp = 0, type = "Buff", spec = "Enhancement" },
    
    -- Feral Spirit - Wolf summon cooldown
    [51533] = { name = "Feral Spirit", sp = 0, type = "Summon", duration = 15, spec = "Enhancement" },
    
    -- Alpha Wolf (Feral Spirit ability) - Wolf damage
    [198486] = { name = "Alpha Wolf", ap = 0.22, school = "Physical", type = "Direct", isAoE = true, spec = "Enhancement" },
    
    -- Doom Winds - Windfury empowerment cooldown
    [384352] = { name = "Doom Winds", sp = 0, type = "Buff", duration = 8, spec = "Enhancement" },
    
    -- Sundering - AoE damage ability
    [197214] = { name = "Sundering", ap = 0.95, school = "Physical", type = "Direct", isAoE = true, spec = "Enhancement" },
    
    -- Hailstorm - Frost Shock empowerment
    [334195] = { name = "Hailstorm", sp = 0.12, school = "Frost", type = "Direct", spec = "Enhancement" },
    
    -- Maelstrom Weapon - Instant cast stacking buff
    [187880] = { name = "Maelstrom Weapon", sp = 0, type = "Buff", stacks = 10, spec = "Enhancement" },
    
    -- Ascendance (Enhancement) - Major cooldown
    [114051] = { name = "Ascendance", sp = 0, type = "Buff", duration = 15, spec = "Enhancement" },
    
    -- Thorim's Invocation - Ascendance enhancement
    [384444] = { name = "Thorim's Invocation", sp = 0, type = "Passive", spec = "Enhancement" },
    
    -- Static Accumulation - Maelstrom generation
    [384411] = { name = "Static Accumulation", sp = 0, type = "Passive", spec = "Enhancement" },
    
    -- Elemental Assault - Stormstrike charges
    [210853] = { name = "Elemental Assault", sp = 0, type = "Passive", spec = "Enhancement" },
    
    -- Stormsurge - Stormstrike enhancement
    [392188] = { name = "Stormsurge", sp = 0, type = "Buff", spec = "Enhancement" },
    
    -- Tempest Strikes - Stormbringer proc
    [428071] = { name = "Tempest Strikes", ap = 0.28, school = "Nature", type = "Direct", spec = "Enhancement" },
    
    -- Unruly Winds - Windfury enhancement
    [390288] = { name = "Unruly Winds", sp = 0, type = "Passive", spec = "Enhancement" },
    
    -- ========================================================================
    -- RESTORATION SPEC
    -- ========================================================================
    
    -- Healing Wave - Efficient direct heal
    [77472] = { name = "Healing Wave", sp = 2.10, school = "Nature", type = "Direct", isHeal = true, spec = "Restoration" },
    
    -- Healing Surge - Fast emergency heal (higher coefficient for Resto)
    [8004] = { name = "Healing Surge", sp = 1.80, school = "Nature", type = "Direct", isHeal = true, spec = "All" },
    
    -- Chain Heal - Multi-target smart heal (enhanced for Resto)
    [1064] = { name = "Chain Heal", sp = 1.35, school = "Nature", type = "Direct", isHeal = true, chainTargets = 4, chainReduction = 0.30, spec = "All" },
    
    -- Riptide - Instant HoT with initial heal
    [61295] = { name = "Riptide", sp = 0.70, school = "Nature", type = "Direct", hotSp = 0.80, duration = 18, isHeal = true, spec = "Restoration" },
    
    -- Healing Rain - Ground AoE HoT
    [73920] = { name = "Healing Rain", sp = 0.22, school = "Nature", type = "HoT", duration = 10, isAoE = true, isHeal = true, spec = "Restoration" },
    
    -- Healing Stream Totem - Passive healing totem
    [5394] = { name = "Healing Stream Totem", sp = 0.35, school = "Nature", type = "Summon", duration = 15, isHeal = true, spec = "Restoration" },
    
    -- Cloudburst Totem - Absorb and release healing
    [157153] = { name = "Cloudburst Totem", sp = 0, type = "Summon", duration = 15, note = "Stores 30% of healing", isHeal = true, spec = "Restoration" },
    
    -- Spirit Link Totem - Health redistribution cooldown
    [98008] = { name = "Spirit Link Totem", sp = 0, type = "Summon", duration = 6, note = "Redistributes health, -10% damage", spec = "Restoration" },
    
    -- Healing Tide Totem - Major raid cooldown
    [108280] = { name = "Healing Tide Totem", sp = 0.38, school = "Nature", type = "Summon", duration = 10, isAoE = true, isHeal = true, spec = "Restoration" },
    
    -- Earthen Wall Totem - Absorb shield totem
    [198838] = { name = "Earthen Wall Totem", sp = 0.45, school = "Nature", type = "Summon", duration = 15, isAoE = true, spec = "Restoration" },
    
    -- Wellspring - Cone healing ability
    [197995] = { name = "Wellspring", sp = 1.50, school = "Nature", type = "Direct", isAoE = true, isHeal = true, maxTargets = 6, spec = "Restoration" },
    
    -- Downpour - AoE cooldown heal
    [207778] = { name = "Downpour", sp = 1.70, school = "Nature", type = "Direct", isAoE = true, isHeal = true, maxTargets = 6, spec = "Restoration" },
    
    -- Ascendance (Restoration) - Major cooldown
    [114052] = { name = "Ascendance", sp = 0, type = "Buff", duration = 15, note = "Heals duplicated to nearby allies", spec = "Restoration" },
    
    -- Tidal Waves - Buff from Riptide/Chain Heal
    [53390] = { name = "Tidal Waves", sp = 0, type = "Buff", stacks = 2, spec = "Restoration" },
    
    -- Unleash Life - Heal enhancement buff
    [73685] = { name = "Unleash Life", sp = 0.45, school = "Nature", type = "Direct", isHeal = true, spec = "Restoration" },
    
    -- High Tide - Chain Heal bounces
    [157154] = { name = "High Tide", sp = 0, type = "Passive", spec = "Restoration" },
    
    -- Ancestral Vigor - Health buff from heals
    [207400] = { name = "Ancestral Vigor", sp = 0, type = "Buff", note = "+10% max health", spec = "Restoration" },
    
    -- Master of the Tides - Healing Tide enhancement
    [381218] = { name = "Master of the Tides", sp = 0, type = "Passive", spec = "Restoration" },
    
    -- Undercurrent - Healing Wave/Surge enhancement
    [382191] = { name = "Undercurrent", sp = 0, type = "Buff", spec = "Restoration" },
    
    -- Wavespeaker's Blessing - Chain Heal bounces enhancement
    [381946] = { name = "Wavespeaker's Blessing", sp = 0, type = "Passive", spec = "Restoration" },
    
    -- ========================================================================
    -- SHARED ABILITIES (All Specs)
    -- ========================================================================
    
    -- Ghost Wolf - Travel form
    [2645] = { name = "Ghost Wolf", sp = 0, type = "Shapeshift", spec = "All" },
    
    -- Purge - Offensive dispel
    [370] = { name = "Purge", sp = 0, type = "Utility", spec = "All" },
    
    -- Wind Shear - Interrupt
    [57994] = { name = "Wind Shear", sp = 0, type = "Utility", spec = "All" },
    
    -- Hex - Crowd control
    [51514] = { name = "Hex", sp = 0, type = "CC", duration = 60, spec = "All" },
    
    -- Capacitor Totem - AoE stun totem
    [192058] = { name = "Capacitor Totem", sp = 0, type = "Summon", duration = 3, note = "AoE stun after 2 sec", spec = "All" },
    
    -- Earth Elemental - Defensive elemental
    [198103] = { name = "Earth Elemental", sp = 0, type = "Summon", duration = 60, spec = "All" },
    
    -- Tremor Totem - Fear/Charm/Sleep dispel
    [8143] = { name = "Tremor Totem", sp = 0, type = "Summon", duration = 10, spec = "All" },
    
    -- Ancestral Spirit - Resurrection
    [2008] = { name = "Ancestral Spirit", sp = 0, type = "Utility", spec = "All" },
    
    -- Astral Shift - Personal defensive
    [108271] = { name = "Astral Shift", sp = 0, type = "Defensive", duration = 12, note = "40% damage reduction", spec = "All" },
    
    -- Spiritwalker's Grace - Casting while moving
    [79206] = { name = "Spiritwalker's Grace", sp = 0, type = "Buff", duration = 15, spec = "All" },
    
    -- Lightning Shield - Passive damage shield
    [192106] = { name = "Lightning Shield", sp = 0.08, school = "Nature", type = "Proc", spec = "All" },
    
    -- Cleanse Spirit - Friendly dispel (Resto)
    [51886] = { name = "Cleanse Spirit", sp = 0, type = "Utility", spec = "All" },
    
    -- Bloodlust / Heroism - Raid haste cooldown
    [2825] = { name = "Bloodlust", sp = 0, type = "Buff", duration = 40, note = "+30% Haste", spec = "All" },
    [32182] = { name = "Heroism", sp = 0, type = "Buff", duration = 40, note = "+30% Haste", spec = "All" },
    
    -- Reincarnation - Self-resurrection
    [20608] = { name = "Reincarnation", sp = 0, type = "Utility", spec = "All" },
    
    -- Totemic Recall - Destroy totems, refund
    [108285] = { name = "Totemic Recall", sp = 0, type = "Utility", spec = "All" },
    
    -- Nature's Swiftness - Instant cast buff
    [378081] = { name = "Nature's Swiftness", sp = 0, type = "Buff", spec = "All" },
    
    -- ========================================================================
    -- HERO TALENTS - FARSEER (Elemental/Restoration)
    -- ========================================================================
    
    -- Ancestor's Guidance - Ancestral spirit visuals
    [458978] = { name = "Ancestor's Guidance", sp = 0, type = "Passive", spec = "Farseer" },
    
    -- Call of the Ancestors - Summon ancestral spirit
    [458990] = { name = "Call of the Ancestors", sp = 0.35, school = "Nature", type = "Summon", isHeal = true, spec = "Farseer" },
    
    -- Earthen Communion - Ancestor enhancement
    [458992] = { name = "Earthen Communion", sp = 0, type = "Buff", spec = "Farseer" },
    
    -- Primordial Capacity - Primordial Wave charges
    [458994] = { name = "Primordial Capacity", sp = 0, type = "Passive", spec = "Farseer" },
    
    -- Spiritwalker's Momentum - Movement casting enhancement
    [458996] = { name = "Spiritwalker's Momentum", sp = 0, type = "Buff", spec = "Farseer" },
    
    -- Maelstrom Supremacy - Maelstrom generation
    [458998] = { name = "Maelstrom Supremacy", sp = 0, type = "Passive", spec = "Farseer" },
    
    -- Ancestral Swiftness - Haste buff
    [459000] = { name = "Ancestral Swiftness", sp = 0, type = "Buff", spec = "Farseer" },
    
    -- Offering from Beyond - Ancestor spell
    [459002] = { name = "Offering from Beyond", sp = 0.28, school = "Nature", type = "Direct", isHeal = true, spec = "Farseer" },
    
    -- Routine Communication - Ancestor spawn rate
    [459004] = { name = "Routine Communication", sp = 0, type = "Passive", spec = "Farseer" },
    
    -- Final Calling - Ancestor burst
    [459006] = { name = "Final Calling", sp = 0.55, school = "Nature", type = "Direct", isAoE = true, spec = "Farseer" },
    
    -- ========================================================================
    -- HERO TALENTS - STORMBRINGER (Elemental/Enhancement)
    -- ========================================================================
    
    -- Tempest - Lightning overload ability
    [454009] = { name = "Tempest", sp = 1.15, school = "Nature", type = "Direct", isAoE = true, spec = "Stormbringer" },
    
    -- Awakening Storms - Tempest generation
    [454011] = { name = "Awakening Storms", sp = 0, type = "Passive", spec = "Stormbringer" },
    
    -- Supercharge - Tempest enhancement
    [454013] = { name = "Supercharge", sp = 0, type = "Buff", spec = "Stormbringer" },
    
    -- Rolling Thunder - Chain Lightning enhancement
    [454015] = { name = "Rolling Thunder", sp = 0, type = "Passive", spec = "Stormbringer" },
    
    -- Stormcaller - Lightning Bolt/Chain Lightning buff
    [454017] = { name = "Stormcaller", sp = 0, type = "Buff", spec = "Stormbringer" },
    
    -- Arc Discharge - Tempest AoE splash
    [454019] = { name = "Arc Discharge", sp = 0.22, school = "Nature", type = "Direct", isAoE = true, spec = "Stormbringer" },
    
    -- Shocking Grasp - Tempest slow
    [454021] = { name = "Shocking Grasp", sp = 0, type = "Debuff", spec = "Stormbringer" },
    
    -- Voltaic Surge - Shock spell enhancement
    [454023] = { name = "Voltaic Surge", sp = 0, type = "Passive", spec = "Stormbringer" },
    
    -- Conductive Energy - Nature damage buff
    [454025] = { name = "Conductive Energy", sp = 0, type = "Buff", spec = "Stormbringer" },
    
    -- Surging Currents - Maelstrom/Maelstrom Weapon generation
    [454027] = { name = "Surging Currents", sp = 0, type = "Passive", spec = "Stormbringer" },
    
    -- ========================================================================
    -- HERO TALENTS - TOTEMIC (Enhancement/Restoration)
    -- ========================================================================
    
    -- Surging Totem - Summoned super totem
    [444995] = { name = "Surging Totem", sp = 0.15, school = "Nature", type = "Summon", duration = 24, spec = "Totemic" },
    
    -- Totemic Rebound - Totem spell bounce
    [444997] = { name = "Totemic Rebound", sp = 0.20, school = "Nature", type = "Direct", chainTargets = 3, spec = "Totemic" },
    
    -- Lively Totems - Totem health/duration
    [444999] = { name = "Lively Totems", sp = 0, type = "Passive", spec = "Totemic" },
    
    -- Oversurge - Surging Totem burst
    [445001] = { name = "Oversurge", sp = 0.55, school = "Nature", type = "Direct", isAoE = true, spec = "Totemic" },
    
    -- Totemic Coordination - Totem synergy
    [445003] = { name = "Totemic Coordination", sp = 0, type = "Buff", spec = "Totemic" },
    
    -- Amplification Core - Surging Totem damage
    [445005] = { name = "Amplification Core", sp = 0, type = "Passive", spec = "Totemic" },
    
    -- Earthsurge - Earth-based enhancement
    [445007] = { name = "Earthsurge", sp = 0, type = "Buff", spec = "Totemic" },
    
    -- Imbuement Mastery - Weapon imbue enhancement
    [445009] = { name = "Imbuement Mastery", sp = 0, type = "Passive", spec = "Totemic" },
    
    -- Whirling Elements - Totem AoE effect
    [445011] = { name = "Whirling Elements", sp = 0.18, school = "Nature", type = "Direct", isAoE = true, spec = "Totemic" },
    
    -- Reactivity - Surging Totem response
    [445013] = { name = "Reactivity", sp = 0, type = "Passive", spec = "Totemic" },
}
