-- DynamicTooltips: Priest 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.Priest = {
    -- ========================================================================
    -- DISCIPLINE SPEC
    -- ========================================================================
    
    -- Power Word: Shield - Primary absorb shield
    [17] = { name = "Power Word: Shield", sp = 1.65, school = "Holy", type = "Shield", isHeal = true, spec = "Discipline" },
    
    -- Penance - Channeled damage (offensive)
    [47540] = { name = "Penance", sp = 0.38, school = "Holy", type = "Channel", duration = 2, spec = "Discipline" },
    
    -- Penance - Channeled heal (defensive)
    [47757] = { name = "Penance", sp = 0.95, school = "Holy", type = "Channel", duration = 2, isHeal = true, spec = "Discipline" },
    
    -- Dark Reprimand - Shadow version of Penance (damage)
    [400169] = { name = "Dark Reprimand", sp = 0.42, school = "Shadow", type = "Channel", duration = 2, spec = "Discipline" },
    
    -- Dark Reprimand - Shadow version of Penance (heal)
    [400174] = { name = "Dark Reprimand", sp = 1.0, school = "Shadow", type = "Channel", duration = 2, isHeal = true, spec = "Discipline" },
    
    -- Atonement - Healing through damage buff
    [194384] = { name = "Atonement", sp = 0, type = "Buff", isHeal = true, note = "Heals for % of damage dealt", spec = "Discipline" },
    
    -- Atonement (applied buff)
    [81749] = { name = "Atonement", sp = 0, type = "HoT", duration = 15, isHeal = true, note = "Applied by spells", spec = "Discipline" },
    
    -- Shadow Word: Pain - Primary DoT (Discipline/Shadow)
    [589] = { name = "Shadow Word: Pain", sp = 0.128, school = "Shadow", type = "DoT", duration = 16, spec = "Discipline/Shadow" },
    
    -- Purge the Wicked - DoT that spreads, replaces SW:P
    [204197] = { name = "Purge the Wicked", sp = 0.085, school = "Holy", type = "Direct", spec = "Discipline" },
    [204213] = { name = "Purge the Wicked", sp = 0.115, school = "Holy", type = "DoT", duration = 20, spec = "Discipline" },
    
    -- Mind Blast - Hard-hitting instant (Discipline/Shadow)
    [8092] = { name = "Mind Blast", sp = 0.88, school = "Shadow", type = "Direct", spec = "Discipline/Shadow" },
    
    -- Smite - Basic Holy damage filler
    [585] = { name = "Smite", sp = 0.50, school = "Holy", type = "Direct", spec = "Discipline" },
    
    -- Power Word: Radiance - AoE Atonement applicator
    [194509] = { name = "Power Word: Radiance", sp = 0.75, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Discipline" },
    
    -- Evangelism - Extends Atonement duration
    [246287] = { name = "Evangelism", sp = 0, type = "Buff", note = "Extends Atonement by 6 sec", spec = "Discipline" },
    
    -- Rapture - Cooldown for spam shields
    [47536] = { name = "Rapture", sp = 0, type = "Buff", note = "PW:S has no cooldown, +40% absorb", spec = "Discipline" },
    
    -- Pain Suppression - Major defensive cooldown
    [33206] = { name = "Pain Suppression", sp = 0, type = "Defensive", note = "40% damage reduction", spec = "Discipline" },
    
    -- Power Word: Barrier - Raid cooldown
    [62618] = { name = "Power Word: Barrier", sp = 0, type = "Defensive", isAoE = true, note = "25% damage reduction", spec = "Discipline" },
    
    -- Shadow Covenant - Shadow healing mode
    [314867] = { name = "Shadow Covenant", sp = 0.92, school = "Shadow", type = "Direct", isHeal = true, isAoE = true, spec = "Discipline" },
    
    -- Mindbender - Pet cooldown
    [123040] = { name = "Mindbender", sp = 0, type = "Summon", spec = "Discipline" },
    
    -- Spirit Shell - Shield conversion cooldown
    [109964] = { name = "Spirit Shell", sp = 0, type = "Buff", note = "Healing becomes absorb shield", spec = "Discipline" },
    
    -- Ultimate Penitence - Major damage/heal cooldown
    [421453] = { name = "Ultimate Penitence", sp = 1.20, school = "Holy", type = "Channel", isHeal = true, spec = "Discipline" },
    
    -- ========================================================================
    -- HOLY SPEC
    -- ========================================================================
    
    -- Flash Heal - Fast heal
    [2061] = { name = "Flash Heal", sp = 1.45, school = "Holy", type = "Direct", isHeal = true, spec = "Holy" },
    
    -- Heal - Efficient long cast heal
    [2060] = { name = "Heal", sp = 2.10, school = "Holy", type = "Direct", isHeal = true, spec = "Holy" },
    
    -- Prayer of Healing - Group heal
    [596] = { name = "Prayer of Healing", sp = 0.90, school = "Holy", type = "Direct", isHeal = true, isAoE = true, maxTargets = 5, spec = "Holy" },
    
    -- Prayer of Mending - Bouncing heal
    [33076] = { name = "Prayer of Mending", sp = 0.90, school = "Holy", type = "Direct", isHeal = true, note = "Bounces up to 5 times", spec = "Holy" },
    
    -- Holy Word: Serenity - Single target emergency heal
    [2050] = { name = "Holy Word: Serenity", sp = 3.80, school = "Holy", type = "Direct", isHeal = true, spec = "Holy" },
    
    -- Holy Word: Sanctify - Ground AoE heal
    [34861] = { name = "Holy Word: Sanctify", sp = 1.95, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Holy" },
    
    -- Holy Word: Chastise - Holy damage stun
    [88625] = { name = "Holy Word: Chastise", sp = 1.40, school = "Holy", type = "Direct", spec = "Holy" },
    
    -- Holy Word: Salvation - Major raid cooldown
    [265202] = { name = "Holy Word: Salvation", sp = 1.50, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Holy" },
    
    -- Circle of Healing - Smart group heal
    [204883] = { name = "Circle of Healing", sp = 0.70, school = "Holy", type = "Direct", isHeal = true, isAoE = true, maxTargets = 5, spec = "Holy" },
    
    -- Divine Hymn - Channeled raid cooldown
    [64843] = { name = "Divine Hymn", sp = 0.55, school = "Holy", type = "Channel", duration = 8, isHeal = true, isAoE = true, spec = "Holy" },
    
    -- Guardian Spirit - Tank external cooldown
    [47788] = { name = "Guardian Spirit", sp = 0, type = "Buff", isHeal = true, note = "60% heal increase, prevents death", spec = "Holy" },
    
    -- Renew - Holy HoT
    [139] = { name = "Renew", sp = 0.28, school = "Holy", type = "HoT", duration = 15, isHeal = true, spec = "Holy" },
    
    -- Holy Fire - Holy damage with DoT
    [14914] = { name = "Holy Fire", sp = 0.65, school = "Holy", type = "Direct", dotSp = 0.05, duration = 7, spec = "Holy" },
    
    -- Binding Heals - Self heal on healing others
    [368275] = { name = "Binding Heals", sp = 0, type = "Passive", isHeal = true, note = "Heals self when casting on others", spec = "Holy" },
    
    -- Lightwell - Placed healing object (Talent)
    [372835] = { name = "Lightwell", sp = 0.60, school = "Holy", type = "Direct", isHeal = true, spec = "Holy" },
    
    -- Halo - Expanding ring heal/damage
    [120517] = { name = "Halo", sp = 1.08, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Holy" },
    [120644] = { name = "Halo", sp = 0.90, school = "Holy", type = "Direct", isAoE = true, note = "Damage", spec = "Holy" },
    
    -- Divine Star - Projectile heal/damage
    [110744] = { name = "Divine Star", sp = 0.50, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Holy" },
    [122128] = { name = "Divine Star", sp = 0.42, school = "Holy", type = "Direct", isAoE = true, note = "Damage", spec = "Holy" },
    
    -- Apotheosis - Holy Word cooldown reduction
    [200183] = { name = "Apotheosis", sp = 0, type = "Buff", note = "Holy Word cooldowns reduced 300%", spec = "Holy" },
    
    -- Symbol of Hope - Mana cooldown
    [64901] = { name = "Symbol of Hope", sp = 0, type = "Channel", duration = 4, note = "Restores mana to party", spec = "Holy" },
    
    -- ========================================================================
    -- SHADOW SPEC
    -- ========================================================================
    
    -- Mind Blast - See Discipline section (spell ID 8092)
    
    -- Shadow Word: Pain - See Discipline section (spell ID 589)
    
    -- Vampiric Touch - Major DoT, insanity generator
    [34914] = { name = "Vampiric Touch", sp = 0.145, school = "Shadow", type = "DoT", duration = 21, spec = "Shadow" },
    
    -- Mind Flay - Channeled filler
    [15407] = { name = "Mind Flay", sp = 0.24, school = "Shadow", type = "Channel", duration = 4.5, spec = "Shadow" },
    
    -- Mind Flay: Insanity - Empowered filler during Surge of Insanity
    [391403] = { name = "Mind Flay: Insanity", sp = 0.36, school = "Shadow", type = "Channel", duration = 2, spec = "Shadow" },
    
    -- Mind Spike - Alternative filler
    [73510] = { name = "Mind Spike", sp = 0.52, school = "Shadow", type = "Direct", spec = "Shadow" },
    
    -- Mind Spike: Insanity - Empowered spike
    [407466] = { name = "Mind Spike: Insanity", sp = 0.78, school = "Shadow", type = "Direct", spec = "Shadow" },
    
    -- Devouring Plague - Primary spender
    [335467] = { name = "Devouring Plague", sp = 0.35, school = "Shadow", type = "Direct", spec = "Shadow" },
    [335468] = { name = "Devouring Plague", sp = 0.32, school = "Shadow", type = "DoT", duration = 6, spec = "Shadow" },
    
    -- Shadow Word: Death - Execute ability
    [32379] = { name = "Shadow Word: Death", sp = 0.60, school = "Shadow", type = "Direct", note = "Execute below 20%", spec = "Shadow" },
    
    -- Void Eruption - Enter Voidform
    [228260] = { name = "Void Eruption", sp = 0.80, school = "Shadow", type = "Direct", isAoE = true, spec = "Shadow" },
    
    -- Void Bolt - Voidform instant cast
    [205448] = { name = "Void Bolt", sp = 0.72, school = "Shadow", type = "Direct", note = "Extends DoTs", spec = "Shadow" },
    
    -- Dark Ascension - Alternative to Void Eruption
    [391109] = { name = "Dark Ascension", sp = 1.30, school = "Shadow", type = "Direct", isAoE = true, spec = "Shadow" },
    
    -- Psychic Link - Cleave damage passive
    [199484] = { name = "Psychic Link", sp = 0, type = "Passive", note = "Mind Blast/Devouring Plague splash", spec = "Shadow" },
    
    -- Mind Sear - AoE channel
    [48045] = { name = "Mind Sear", sp = 0.15, school = "Shadow", type = "Channel", duration = 4.5, isAoE = true, spec = "Shadow" },
    
    -- Shadowy Apparitions - Passive proc damage
    [341491] = { name = "Shadowy Apparitions", sp = 0.32, school = "Shadow", type = "Direct", spec = "Shadow" },
    [78203] = { name = "Shadowy Apparition", sp = 0.32, school = "Shadow", type = "Direct", note = "Proc", spec = "Shadow" },
    
    -- Void Torrent - Channeled cooldown
    [263165] = { name = "Void Torrent", sp = 0.60, school = "Shadow", type = "Channel", duration = 3, spec = "Shadow" },
    
    -- Shadow Crash - AoE damage talent
    [205385] = { name = "Shadow Crash", sp = 0.70, school = "Shadow", type = "Direct", isAoE = true, spec = "Shadow" },
    
    -- Dispersion - Shadow defensive
    [47585] = { name = "Dispersion", sp = 0, type = "Defensive", note = "75% damage reduction, can't attack", spec = "Shadow" },
    
    -- Vampiric Embrace - Passive self healing
    [15286] = { name = "Vampiric Embrace", sp = 0, type = "Buff", isHeal = true, note = "Heals for % of single-target damage", spec = "Shadow" },
    
    -- Silence - Interrupt
    [15487] = { name = "Silence", sp = 0, type = "CC", spec = "Shadow" },
    
    -- Surrender to Madness - High-risk cooldown
    [319952] = { name = "Surrender to Madness", sp = 0, type = "Buff", note = "100% more Insanity, die if not killed", spec = "Shadow" },
    
    -- Mindbender (Shadow version)
    [200174] = { name = "Mindbender", sp = 0, type = "Summon", spec = "Shadow" },
    
    -- ========================================================================
    -- SHARED ABILITIES (All Specs)
    -- ========================================================================
    
    -- Fade - Threat drop/defensive
    [586] = { name = "Fade", sp = 0, type = "Defensive", spec = "All" },
    
    -- Mass Dispel - AoE dispel
    [32375] = { name = "Mass Dispel", sp = 0, school = "Holy", type = "Utility", isAoE = true, spec = "All" },
    
    -- Dispel Magic - Offensive dispel
    [528] = { name = "Dispel Magic", sp = 0, school = "Holy", type = "Utility", spec = "All" },
    
    -- Purify - Friendly dispel (Disc/Holy)
    [527] = { name = "Purify", sp = 0, school = "Holy", type = "Utility", isHeal = true, spec = "All" },
    
    -- Purify Disease (Shadow)
    [213634] = { name = "Purify Disease", sp = 0, school = "Shadow", type = "Utility", spec = "All" },
    
    -- Psychic Scream - Fear
    [8122] = { name = "Psychic Scream", sp = 0, type = "CC", isAoE = true, spec = "All" },
    
    -- Shadowfiend - Pet cooldown (shared)
    [34433] = { name = "Shadowfiend", sp = 0, type = "Summon", spec = "All" },
    
    -- Power Word: Life - Emergency heal
    [373481] = { name = "Power Word: Life", sp = 2.50, school = "Holy", type = "Direct", isHeal = true, spec = "All" },
    
    -- Desperate Prayer - Self heal
    [19236] = { name = "Desperate Prayer", sp = 0, type = "Direct", isHeal = true, note = "25% max health heal", spec = "All" },
    
    -- Leap of Faith - Grip ally
    [73325] = { name = "Leap of Faith", sp = 0, type = "Utility", spec = "All" },
    
    -- Power Infusion - Haste cooldown
    [10060] = { name = "Power Infusion", sp = 0, type = "Buff", note = "25% haste for 20 sec", spec = "All" },
    
    -- Shadow Word: Pain (shared, duplicate for completeness)
    -- Already defined in Shadow section
    
    -- Mind Control
    [605] = { name = "Mind Control", sp = 0, type = "CC", spec = "All" },
    
    -- Shackle Undead
    [9484] = { name = "Shackle Undead", sp = 0, type = "CC", spec = "All" },
    
    -- Levitate
    [1706] = { name = "Levitate", sp = 0, type = "Utility", spec = "All" },
    
    -- Power Word: Fortitude - Stamina buff
    [21562] = { name = "Power Word: Fortitude", sp = 0, type = "Buff", spec = "All" },
    
    -- ========================================================================
    -- HERO TALENTS - ARCHON (Holy/Discipline)
    -- ========================================================================
    
    -- Empyreal Blaze - Holy damage proc
    [440989] = { name = "Empyreal Blaze", sp = 0.65, school = "Holy", type = "Direct", spec = "Archon" },
    
    -- Halo of the Archon - Empowered Halo
    [440992] = { name = "Halo of the Archon", sp = 1.20, school = "Holy", type = "Direct", isHeal = true, isAoE = true, spec = "Archon" },
    
    -- Burning Vehemence - DoT application
    [440987] = { name = "Burning Vehemence", sp = 0.20, school = "Holy", type = "DoT", duration = 6, spec = "Archon" },
    
    -- Resonant Energy - Stacking buff
    [440990] = { name = "Resonant Energy", sp = 0, type = "Buff", spec = "Archon" },
    
    -- Perfected Form - Holy Word enhancement
    [440993] = { name = "Perfected Form", sp = 0, type = "Passive", note = "Holy Words enhanced", spec = "Archon" },
    
    -- Power Surge - Resource return
    [440994] = { name = "Power Surge", sp = 0, type = "Passive", note = "Holy Fire restores mana", spec = "Archon" },
    
    -- Divine Feathers - Movement buff
    [440991] = { name = "Divine Feathers", sp = 0, type = "Buff", spec = "Archon" },
    
    -- Manifested Power - Holy Word damage
    [440996] = { name = "Manifested Power", sp = 0.30, school = "Holy", type = "Direct", spec = "Archon" },
    
    -- ========================================================================
    -- HERO TALENTS - ORACLE (Holy/Discipline)
    -- ========================================================================
    
    -- Premonition - Future sight heal
    [440997] = { name = "Premonition", sp = 1.80, school = "Holy", type = "Direct", isHeal = true, spec = "Oracle" },
    
    -- Preventive Measures - Damage reduction
    [440998] = { name = "Preventive Measures", sp = 0, type = "Buff", note = "Reduces damage taken", spec = "Oracle" },
    
    -- Clairvoyance - Enhanced healing
    [440999] = { name = "Clairvoyance", sp = 0, type = "Buff", note = "Next heal enhanced", spec = "Oracle" },
    
    -- Fateful Threads - Ally connection
    [441000] = { name = "Fateful Threads", sp = 0, type = "Buff", note = "Connected allies share healing", spec = "Oracle" },
    
    -- Foreseen Circumstances - AoE protection
    [441001] = { name = "Foreseen Circumstances", sp = 0.40, school = "Holy", type = "Shield", isHeal = true, isAoE = true, spec = "Oracle" },
    
    -- Assured Safety - Absorb application
    [441002] = { name = "Assured Safety", sp = 0.35, school = "Holy", type = "Shield", isHeal = true, spec = "Oracle" },
    
    -- Miraculous Recovery - Critical heal proc
    [441003] = { name = "Miraculous Recovery", sp = 0, type = "Passive", isHeal = true, note = "Critical heals apply HoT", spec = "Oracle" },
    
    -- Prophetic Vision - Major cooldown
    [441004] = { name = "Prophetic Vision", sp = 0, type = "Buff", note = "See incoming damage, prepare healing", spec = "Oracle" },
    
    -- ========================================================================
    -- HERO TALENTS - VOIDWEAVER (Shadow/Discipline)
    -- ========================================================================
    
    -- Entropic Rift - Void zone damage
    [450887] = { name = "Entropic Rift", sp = 0.55, school = "Shadow", type = "DoT", duration = 8, isAoE = true, spec = "Voidweaver" },
    
    -- Collapsing Void - Rift explosion
    [450888] = { name = "Collapsing Void", sp = 0.95, school = "Shadow", type = "Direct", isAoE = true, spec = "Voidweaver" },
    
    -- Void Blast - Empowered Mind Blast
    [450889] = { name = "Void Blast", sp = 1.15, school = "Shadow", type = "Direct", spec = "Voidweaver" },
    
    -- Voidwraith - Summoned void creature
    [450890] = { name = "Voidwraith", sp = 0, type = "Summon", spec = "Voidweaver" },
    
    -- Devour Matter - Health absorption
    [450891] = { name = "Devour Matter", sp = 0.40, school = "Shadow", type = "Direct", isHeal = true, healsForDamage = true, spec = "Voidweaver" },
    
    -- Embrace of the Void - Damage buff
    [450892] = { name = "Embrace of the Void", sp = 0, type = "Buff", note = "Shadow damage increased", spec = "Voidweaver" },
    
    -- Inner Quietus - Defensive cooldown
    [450893] = { name = "Inner Quietus", sp = 0, type = "Defensive", note = "Absorbs damage", spec = "Voidweaver" },
    
    -- Dark Energy - Resource generation
    [450894] = { name = "Dark Energy", sp = 0, type = "Passive", note = "DoT crits generate Insanity", spec = "Voidweaver" },
    
    -- Void Leech - Life drain
    [450895] = { name = "Void Leech", sp = 0.25, school = "Shadow", type = "DoT", duration = 6, healsForDamage = true, spec = "Voidweaver" },
    
    -- Depth of the Void - DoT extension
    [450896] = { name = "Depth of the Void", sp = 0, type = "Passive", note = "Mind Blast extends DoTs", spec = "Voidweaver" },
    
    -- No Escape - Slow effect
    [450897] = { name = "No Escape", sp = 0, type = "Debuff", note = "DoT targets slowed", spec = "Voidweaver" },
    
    -- Darkening Horizon - Voidform enhancement
    [450898] = { name = "Darkening Horizon", sp = 0, type = "Passive", note = "Voidform lasts longer", spec = "Voidweaver" },
}
