-- DynamicTooltips: Mage 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.Mage = {
    -- ========================================================================
    -- ARCANE SPEC
    -- ========================================================================
    
    -- Arcane Blast - Primary builder, stacks Arcane Charges
    [30451] = { name = "Arcane Blast", sp = 0.87, school = "Arcane", type = "Direct", spec = "Arcane" },
    
    -- Arcane Missiles - Channeled proc spell
    [5143] = { name = "Arcane Missiles", sp = 0.27, school = "Arcane", type = "Channel", duration = 2.5, spec = "Arcane" },
    
    -- Arcane Barrage - Consumes Arcane Charges, cleaves
    [44425] = { name = "Arcane Barrage", sp = 0.62, school = "Arcane", type = "Direct", spec = "Arcane" },
    
    -- Arcane Explosion - PBAoE instant cast
    [1449] = { name = "Arcane Explosion", sp = 0.28, school = "Arcane", type = "Direct", isAoE = true, spec = "Arcane" },
    
    -- Arcane Orb - Talent, traveling orb AoE
    [153626] = { name = "Arcane Orb", sp = 0.70, school = "Arcane", type = "Direct", isAoE = true, spec = "Arcane" },
    
    -- Touch of the Magi - Debuff that stores and releases damage
    [321507] = { name = "Touch of the Magi", sp = 0, type = "Debuff", spec = "Arcane" },
    [210824] = { name = "Touch of the Magi", sp = 1.20, school = "Arcane", type = "Direct", note = "Explosion", spec = "Arcane" },
    
    -- Arcane Surge - Major cooldown, empowered burst
    [365350] = { name = "Arcane Surge", sp = 2.40, school = "Arcane", type = "Direct", spec = "Arcane" },
    
    -- Evocation - Mana restore channel
    [12051] = { name = "Evocation", sp = 0, type = "Channel", duration = 6, spec = "Arcane" },
    
    -- Presence of Mind - Instant cast buff
    [205025] = { name = "Presence of Mind", sp = 0, type = "Buff", spec = "Arcane" },
    
    -- Nether Tempest - Multi-target DoT
    [114923] = { name = "Nether Tempest", sp = 0.12, school = "Arcane", type = "DoT", duration = 12, isAoE = true, spec = "Arcane" },
    
    -- Supernova - AoE knockup talent
    [157980] = { name = "Supernova", sp = 0.45, school = "Arcane", type = "Direct", isAoE = true, spec = "Arcane" },
    
    -- Arcane Echo - Proc damage (from Touch of the Magi talent)
    [342232] = { name = "Arcane Echo", sp = 0.35, school = "Arcane", type = "Direct", spec = "Arcane" },
    
    -- Radiant Spark - Setup damage amplifier
    [376103] = { name = "Radiant Spark", sp = 0.55, school = "Arcane", type = "Direct", spec = "Arcane" },
    
    -- ========================================================================
    -- FIRE SPEC
    -- ========================================================================
    
    -- Fireball - Primary builder
    [133] = { name = "Fireball", sp = 1.05, school = "Fire", type = "Direct", spec = "Fire" },
    
    -- Fire Blast - Instant, always crits with Hot Streak
    [108853] = { name = "Fire Blast", sp = 0.55, school = "Fire", type = "Direct", spec = "Fire" },
    
    -- Pyroblast - Hard-hitting proc spell
    [11366] = { name = "Pyroblast", sp = 1.35, school = "Fire", type = "Direct", spec = "Fire" },
    
    -- Scorch - Mobile filler, execute phase
    [2948] = { name = "Scorch", sp = 0.30, school = "Fire", type = "Direct", spec = "Fire" },
    
    -- Ignite - Passive DoT from crits
    [12654] = { name = "Ignite", sp = 0, school = "Fire", type = "DoT", spec = "Fire" },
    
    -- Flamestrike - Ground AoE
    [2120] = { name = "Flamestrike", sp = 0.74, school = "Fire", type = "Direct", isAoE = true, spec = "Fire" },
    
    -- Living Bomb - DoT that explodes
    [44457] = { name = "Living Bomb", sp = 0.18, school = "Fire", type = "DoT", duration = 4, spec = "Fire" },
    [44461] = { name = "Living Bomb", sp = 0.36, school = "Fire", type = "Direct", note = "Explosion", isAoE = true, spec = "Fire" },
    
    -- Combustion - Major cooldown buff
    [190319] = { name = "Combustion", sp = 0, type = "Buff", spec = "Fire" },
    
    -- Phoenix Flames - AoE burst, cleaves
    [257541] = { name = "Phoenix Flames", sp = 0.70, school = "Fire", type = "Direct", isAoE = true, spec = "Fire" },
    
    -- Meteor - Ground targeted AoE
    [153561] = { name = "Meteor", sp = 2.10, school = "Fire", type = "Direct", isAoE = true, spec = "Fire" },
    [155158] = { name = "Meteor Burn", sp = 0.12, school = "Fire", type = "DoT", duration = 8, isAoE = true, spec = "Fire" },
    
    -- Dragon's Breath - Frontal cone
    [31661] = { name = "Dragon's Breath", sp = 0.40, school = "Fire", type = "Direct", isAoE = true, spec = "Fire" },
    
    -- Hot Streak - Proc buff (no damage)
    [48108] = { name = "Hot Streak", sp = 0, type = "Buff", spec = "Fire" },
    
    -- Heating Up - Pre-proc buff
    [48107] = { name = "Heating Up", sp = 0, type = "Buff", spec = "Fire" },
    
    -- Pyromaniac - Ignite spread proc
    [205020] = { name = "Pyromaniac", sp = 0, type = "Passive", spec = "Fire" },
    
    -- Kindling - Combustion CDR passive
    [155148] = { name = "Kindling", sp = 0, type = "Passive", spec = "Fire" },
    
    -- Sun King's Blessing - Pyroblast empowerment
    [383886] = { name = "Sun King's Blessing", sp = 0, type = "Buff", spec = "Fire" },
    
    -- Feel the Burn - Mastery stacking buff
    [383391] = { name = "Feel the Burn", sp = 0, type = "Buff", spec = "Fire" },
    
    -- ========================================================================
    -- FROST SPEC
    -- ========================================================================
    
    -- Frostbolt - Primary builder
    [116] = { name = "Frostbolt", sp = 0.76, school = "Frost", type = "Direct", spec = "Frost" },
    
    -- Ice Lance - Instant, bonus on frozen targets
    [30455] = { name = "Ice Lance", sp = 0.20, school = "Frost", type = "Direct", spec = "Frost" },
    [228598] = { name = "Ice Lance", sp = 0.80, school = "Frost", type = "Direct", note = "Shattered", spec = "Frost" },
    
    -- Flurry - Fast projectile, applies Winter's Chill
    [44614] = { name = "Flurry", sp = 0.55, school = "Frost", type = "Direct", spec = "Frost" },
    
    -- Blizzard - Channeled ground AoE
    [190356] = { name = "Blizzard", sp = 0.18, school = "Frost", type = "Channel", duration = 8, isAoE = true, spec = "Frost" },
    
    -- Frozen Orb - Traveling AoE
    [84714] = { name = "Frozen Orb", sp = 0.50, school = "Frost", type = "Direct", isAoE = true, spec = "Frost" },
    [84721] = { name = "Frozen Orb", sp = 0.08, school = "Frost", type = "DoT", note = "Tick", isAoE = true, spec = "Frost" },
    
    -- Comet Storm - Multi-hit AoE talent
    [153595] = { name = "Comet Storm", sp = 0.35, school = "Frost", type = "Direct", isAoE = true, spec = "Frost" },
    [153596] = { name = "Comet Storm", sp = 0.15, school = "Frost", type = "Direct", note = "Comet Hit", isAoE = true, spec = "Frost" },
    
    -- Ice Nova - PBAoE stun
    [157997] = { name = "Ice Nova", sp = 0.50, school = "Frost", type = "Direct", isAoE = true, spec = "Frost" },
    
    -- Glacial Spike - Big shatter combo
    [199786] = { name = "Glacial Spike", sp = 1.60, school = "Frost", type = "Direct", spec = "Frost" },
    
    -- Icy Veins - Major cooldown haste buff
    [12472] = { name = "Icy Veins", sp = 0, type = "Buff", spec = "Frost" },
    
    -- Cone of Cold - Frontal cone
    [120] = { name = "Cone of Cold", sp = 0.35, school = "Frost", type = "Direct", isAoE = true, spec = "Frost" },
    
    -- Brain Freeze - Flurry proc buff
    [190446] = { name = "Brain Freeze", sp = 0, type = "Buff", spec = "Frost" },
    
    -- Fingers of Frost - Ice Lance proc buff
    [112965] = { name = "Fingers of Frost", sp = 0, type = "Buff", spec = "Frost" },
    
    -- Winter's Chill - Debuff from Flurry
    [228358] = { name = "Winter's Chill", sp = 0, type = "Debuff", spec = "Frost" },
    
    -- Ray of Frost - Channeled single target
    [205021] = { name = "Ray of Frost", sp = 0.45, school = "Frost", type = "Channel", duration = 5, spec = "Frost" },
    
    -- Ebonbolt - Guaranteed Brain Freeze
    [257537] = { name = "Ebonbolt", sp = 0.95, school = "Frost", type = "Direct", spec = "Frost" },
    
    -- Freezing Rain - Blizzard empowerment
    [270233] = { name = "Freezing Rain", sp = 0, type = "Buff", spec = "Frost" },
    
    -- Splitting Ice - Cleave passive
    [56377] = { name = "Splitting Ice", sp = 0, type = "Passive", spec = "Frost" },
    
    -- Frost Bomb - Detonating debuff
    [374103] = { name = "Frost Bomb", sp = 0.85, school = "Frost", type = "Direct", isAoE = true, spec = "Frost" },
    
    -- ========================================================================
    -- SHARED ABILITIES (All Specs)
    -- ========================================================================
    
    -- Frost Nova - Root
    [122] = { name = "Frost Nova", sp = 0.10, school = "Frost", type = "Direct", isAoE = true, spec = "All" },
    
    -- Blink - Teleport
    [1953] = { name = "Blink", sp = 0, type = "Utility", spec = "All" },
    
    -- Shimmer - Talent Blink replacement
    [212653] = { name = "Shimmer", sp = 0, type = "Utility", spec = "All" },
    
    -- Ice Block - Immunity
    [45438] = { name = "Ice Block", sp = 0, type = "Defensive", spec = "All" },
    
    -- Greater Invisibility - Defensive + invis
    [110959] = { name = "Greater Invisibility", sp = 0, type = "Defensive", spec = "All" },
    
    -- Invisibility - Standard invis
    [66] = { name = "Invisibility", sp = 0, type = "Utility", spec = "All" },
    
    -- Spellsteal - Buff steal
    [30449] = { name = "Spellsteal", sp = 0, school = "Arcane", type = "Utility", spec = "All" },
    
    -- Counterspell - Interrupt
    [2139] = { name = "Counterspell", sp = 0, type = "Utility", spec = "All" },
    
    -- Polymorph - CC
    [118] = { name = "Polymorph", sp = 0, type = "CC", spec = "All" },
    
    -- Mirror Image - Cooldown summon
    [55342] = { name = "Mirror Image", sp = 0, type = "Summon", spec = "All" },
    
    -- Alter Time - Temporal reset
    [342245] = { name = "Alter Time", sp = 0, type = "Defensive", spec = "All" },
    
    -- Time Warp - Bloodlust
    [80353] = { name = "Time Warp", sp = 0, type = "Buff", spec = "All" },
    
    -- Ice Barrier - Frost shield
    [11426] = { name = "Ice Barrier", sp = 0, type = "Shield", spec = "All" },
    
    -- Blazing Barrier - Fire shield
    [235313] = { name = "Blazing Barrier", sp = 0, type = "Shield", spec = "All" },
    
    -- Prismatic Barrier - Arcane shield
    [235450] = { name = "Prismatic Barrier", sp = 0, type = "Shield", spec = "All" },
    
    -- Arcane Intellect - Buff
    [1459] = { name = "Arcane Intellect", sp = 0, type = "Buff", spec = "All" },
    
    -- Remove Curse - Dispel
    [475] = { name = "Remove Curse", sp = 0, type = "Utility", spec = "All" },
    
    -- Slow Fall - Utility
    [130] = { name = "Slow Fall", sp = 0, type = "Utility", spec = "All" },
    
    -- Mass Barrier - Talent group shield
    [414660] = { name = "Mass Barrier", sp = 0, type = "Shield", isAoE = true, spec = "All" },
    
    -- Ring of Frost - AoE CC
    [113724] = { name = "Ring of Frost", sp = 0, type = "CC", isAoE = true, spec = "All" },
    
    -- Blast Wave - Knockback AoE
    [157981] = { name = "Blast Wave", sp = 0.25, school = "Fire", type = "Direct", isAoE = true, spec = "All" },
    
    -- Ice Cold - Defensive talent
    [414659] = { name = "Ice Cold", sp = 0, type = "Defensive", spec = "All" },
    
    -- Mass Polymorph - AoE CC talent
    [383121] = { name = "Mass Polymorph", sp = 0, type = "CC", isAoE = true, spec = "All" },
    
    -- ========================================================================
    -- HERO TALENTS - SUNFURY (Arcane/Fire)
    -- ========================================================================
    
    -- Spellfire Spheres - Resource system
    [449400] = { name = "Spellfire Spheres", sp = 0, type = "Buff", spec = "Sunfury" },
    
    -- Gravity Lapse - Burst window
    [449700] = { name = "Gravity Lapse", sp = 0.35, school = "Arcane", type = "Direct", isAoE = true, spec = "Sunfury" },
    
    -- Sunfury Execution - Empowered damage proc
    [449828] = { name = "Sunfury Execution", sp = 1.10, school = "Fire", type = "Direct", spec = "Sunfury" },
    
    -- Codex of the Sunstriders - Passive enhancement
    [449380] = { name = "Codex of the Sunstriders", sp = 0, type = "Passive", spec = "Sunfury" },
    
    -- Rondurmancy - DoT spreading
    [449405] = { name = "Rondurmancy", sp = 0, type = "Passive", spec = "Sunfury" },
    
    -- Burden of the Sun - Debuff enhancement
    [449410] = { name = "Burden of the Sun", sp = 0.25, school = "Fire", type = "DoT", spec = "Sunfury" },
    
    -- Glorious Incandescence - Burst window enhancement
    [449390] = { name = "Glorious Incandescence", sp = 0, type = "Buff", spec = "Sunfury" },
    
    -- Memory of Al'ar - Phoenix enhancement
    [449619] = { name = "Memory of Al'ar", sp = 0.60, school = "Fire", type = "Direct", spec = "Sunfury" },
    
    -- ========================================================================
    -- HERO TALENTS - SPELLSLINGER (Arcane/Frost)
    -- ========================================================================
    
    -- Splinterstorm - Splinter proc
    [443742] = { name = "Splinterstorm", sp = 0.40, school = "Arcane", type = "Direct", isAoE = true, spec = "Spellslinger" },
    
    -- Augury Abounds - Proc chance increase
    [443783] = { name = "Augury Abounds", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- Controlled Instincts - Proc enhancement
    [444305] = { name = "Controlled Instincts", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- Volatile Magic - Damage bonus
    [444323] = { name = "Volatile Magic", sp = 0.30, school = "Arcane", type = "Direct", spec = "Spellslinger" },
    
    -- Slippery Slinging - Mobility enhancement
    [444023] = { name = "Slippery Slinging", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- Unerring Proficiency - Crit enhancement
    [444304] = { name = "Unerring Proficiency", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- Spellfrost Teachings - Frost/Arcane synergy
    [444033] = { name = "Spellfrost Teachings", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- Force of Will - Proc damage
    [444714] = { name = "Force of Will", sp = 0.50, school = "Arcane", type = "Direct", spec = "Spellslinger" },
    
    -- Shifting Shards - Movement enhancement
    [444739] = { name = "Shifting Shards", sp = 0, type = "Passive", spec = "Spellslinger" },
    
    -- ========================================================================
    -- HERO TALENTS - FROSTFIRE (Fire/Frost)
    -- ========================================================================
    
    -- Frostfire Bolt - Hybrid spell
    [431044] = { name = "Frostfire Bolt", sp = 0.85, school = "Frostfire", type = "Direct", spec = "Frostfire" },
    
    -- Frostfire Mastery - Resource system
    [431038] = { name = "Frostfire Mastery", sp = 0, type = "Buff", spec = "Frostfire" },
    
    -- Excess Frost - Proc enhancement
    [438611] = { name = "Excess Frost", sp = 0, type = "Buff", spec = "Frostfire" },
    
    -- Excess Fire - Proc enhancement
    [438610] = { name = "Excess Fire", sp = 0, type = "Buff", spec = "Frostfire" },
    
    -- Elemental Affinity - Passive bonus
    [431067] = { name = "Elemental Affinity", sp = 0, type = "Passive", spec = "Frostfire" },
    
    -- Meltdown - Burst window
    [431131] = { name = "Meltdown", sp = 0, type = "Buff", spec = "Frostfire" },
    
    -- Flash Freezeburn - Instant proc
    [431178] = { name = "Flash Freezeburn", sp = 0.65, school = "Frostfire", type = "Direct", spec = "Frostfire" },
    
    -- Thermal Conditioning - Defensive bonus
    [431117] = { name = "Thermal Conditioning", sp = 0, type = "Passive", spec = "Frostfire" },
    
    -- Frostfire Infusion - Damage enhancement
    [431166] = { name = "Frostfire Infusion", sp = 0.20, school = "Frostfire", type = "DoT", spec = "Frostfire" },
    
    -- Severe Temperatures - Crit damage bonus
    [431189] = { name = "Severe Temperatures", sp = 0, type = "Passive", spec = "Frostfire" },
    
    -- Isothermic Core - DoT damage enhancement
    [431095] = { name = "Isothermic Core", sp = 0, type = "Passive", spec = "Frostfire" },
    
    -- Frostfire Empowerment - Major proc
    [431176] = { name = "Frostfire Empowerment", sp = 0, type = "Buff", spec = "Frostfire" },
}
