import type { DungeonData } from "@/types/dungeon";

export const maisaraCaverns: DungeonData = {
  id: "maisara-caverns",
  name: "Maisara Caverns",
  descriptionHtml: `Linear 3-boss dungeon — free prisoners to progress, use environment traps and buffs`,
  headerImage: "/assets/maisara_caverns_header.jpg",
  icon: "/assets/dungeon_maisara_caverns.jpg",
  sections: [
    {
      type: "trash",
      data: {
        header: "Troll Village — Trash Before Muro'jin and Nekraxx",
        content: [
          { type: "quickRef", data: { html: `<strong>Environment:</strong> Free 8 of 12 Witherbark Prisoners (out of combat only) to unlock the boss. Go right for <strong>Hearty Vilebranch Stew</strong> (+3% leech/avoidance, 30 min, persists through death). <strong>Massive Freezing Traps</strong> on both sides give a 5s stun extra-action button — works on CC-immune mobs.` } },
          {
            type: "mob",
            data: {
              name: "Frenzied Berserker",
              nameHtml: `Frenzied Berserker`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1255966/regeneratin">Regeneratin'</a> — passive healing. Use healing reduction effects (MS, wound poison) to counter.`,
                `<a href="https://www.wowhead.com/beta/spell=1255765/blood-frenzy">Blood Frenzy</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Enrage buff, increased damage. Soothe to remove.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Dread Souleater (Immune to CC)",
              nameHtml: `Dread Souleater <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1257088/necrotic-wave">Necrotic Wave</a> — arcs to all nearby players, applies healing absorb. Stagger defensives and healing CDs.`,
                `<a href="https://www.wowhead.com/beta/spell=1257155/rain-of-toads">Rain Of Toads</a> — dodge the circles.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Keen Headhunter",
              nameHtml: `Keen Headhunter`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1255966/regeneratin">Regeneratin'</a> — passive healing. Apply MS effects.`,
                `<a href="https://www.wowhead.com/beta/spell=1266381/hooked-snare">Hooked Snare</a> — interrupt or use freedom on the target.`,
                `<a href="https://www.wowhead.com/beta/spell=1255964/throw-spear">Throw Spear</a> — random target, has minimum range. Stack in melee to avoid.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Hulking Juggernaut (Immune to CC)",
              nameHtml: `Hulking Juggernaut <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1256059/rending-gore">Rending Gore</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Bleed on you. Use defensive or bleed cleanse.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1256047/deafening-roar">Deafening Roar</a> — stop casting when it completes. Watch your health.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Bramblemaw Bear",
              nameHtml: `Bramblemaw Bear`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1256561/crunch-armor">Crunch Armor</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Stacking armor reduction. Use defensives as stacks increase.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Hexbound Eagle",
              nameHtml: `Hexbound Eagle`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1256584/diseased-claws">Diseased Claws</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Passive plague damage on melee hits against you.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1257781/shredding-talons">Shredding Talons</a> — leap + frontal channel on random target. CC to stop it.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Ritual Hexxer",
              nameHtml: `Ritual Hexxer`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1256008/hex">Hex</a> — <span class="warn">interrupt EVERY cast.</span> Magic dispel if it goes off.`,
                `<a href="https://www.wowhead.com/beta/spell=1256015/shadow-bolt">Shadow Bolt</a> — random target. Use spare interrupts.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Warding Mask",
              nameHtml: `Warding Mask`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1257328/sear">Sear</a> — random target damage. Careful when pulled with other AoE damage mobs.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Hex Guardian (Immune to CC)",
              nameHtml: `Hex Guardian <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1258481/searing-presence">Searing Presence</a> — constant AoE pulsing damage. <span class="warn">Have offensive + defensive CDs ready for these pulls.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1258475/magma-surge">Magma Surge</a> — line at random player. Don't cleave allies.`,
                `<a href="https://www.wowhead.com/beta/spell=1258806/ritual-firebrand">Ritual Firebrand</a> — Magic debuff on 2 players, drops circles. Dispel as needed.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Umbral Shadowbinder",
              nameHtml: `Umbral Shadowbinder`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1263292/shrink">Shrink</a> — channels into random player. Interrupt or CC.`,
                `<a href="https://www.wowhead.com/beta/spell=1265832/shadow-burst">Shadow Burst</a> — random target. Spread to avoid cleaving allies.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 1",
        name: "Muro'jin and Nekraxx",
        subtitle: "Duo fight — split damage evenly, use Freezing Traps to counter Carrion Swoop",
        image: "/assets/muro_jin_and_nekraxx_boss_fight.jpg",
        abilities: [
          {
            name: "Flanking Spear",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1266480/flanking-spear",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Muro'jin disengages then hits tank — knockback + 10s bleed.</li><li><span style="color: var(--tank-color); font-weight: 600;">Use a defensive for the bleed and mobility to cancel the knockback.</span></li><li><span class="warn">Don't get knocked into a Freezing Trap.</span></li></ul>`,
          },
          {
            name: "Infected Pinions",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1246666/infected-pinions",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Nekraxx applies 30s Disease to entire group — main party damage source.</li><li><span class="warn">Bring disease dispels. Prioritize dispelling over Barrage slow.</span></li></ul>`,
          },
          {
            name: "Freezing Trap",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1260731/freezing-trap",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Dropped under all players — incapacitates for 8s on contact. Auto-detonates after 40s leaving frost puddle for 3 min.</li><li><span class="tip">Stay grouped and rotate the room to conserve space.</span></li><li><span class="tip">Step into a trap when targeted by Carrion Swoop to stun Nekraxx for 5s.</span></li></ul>`,
          },
          {
            name: "Carrion Swoop",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1249479/carrion-swoop",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Nekraxx charges a random target — massive damage + huge knockup.</li><li><span class="warn">Target MUST step into a Freezing Trap before impact to stun the boss.</span></li></ul>`,
          },
          {
            name: "Barrage",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1260643/barrage",
            role: "everyone",
            importance: null,
            descriptionHtml: `<ul><li>Muro'jin channels a following frontal at a random player — stacking Magic slow.</li><li>Target stands still, others move out.</li><li><span class="tip">No damage on the debuff — save dispels for Infected Pinions. Use freedom to remove slow.</span></li></ul>`,
          },
          {
            name: "Revive Pet",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1249789/revive-pet",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li><span class="warn">Keep both bosses' HP even.</span></li><li>If Muro'jin is alone, he casts Revive Pet (10s to kill or Nekraxx returns at 35%).</li><li>If Nekraxx is alone, gains stacking 20% damage increase every 4s.</li></ul>`,
          },
          {
            name: "Fetid Quillstorm",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1243900/fetid-quillstorm",
            role: "everyone",
            importance: null,
            descriptionHtml: `<ul><li>Nekraxx leaps to random player — AoE hit + circles to dodge.</li><li>Keep group close so the leap is short.</li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Spirit Halls — Trash Before Vordaza",
        content: [
          { type: "quickRef", data: { html: `<strong>Environment:</strong> Lost Souls path away from the altar — they explode on player contact dealing shadow damage + root (<a href="https://www.wowhead.com/beta/spell=1259731/cries-of-the-fallen">Cries of the Fallen</a>). Avoid them. Room exit is sealed until mini-boss Rokh'zal is killed.` } },
          {
            type: "mob",
            data: {
              name: "Grim Skirmisher",
              nameHtml: `Grim Skirmisher`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1270079/grim-ward">Grim Ward</a> — Magic shield. Stagger purges — removal deals moderate group damage.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Restless Gnarldin (Immune to CC)",
              nameHtml: `Restless Gnarldin <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259270/spectral-strikes">Spectral Strikes</a> — passive AoE shadow damage on melee swings.`,
                `<a href="https://www.wowhead.com/beta/spell=1259631/staggering-blow">Staggering Blow</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Tank buster. Have defensives ready.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1257895/ancestral-crush">Ancestral Crush</a> — dodge circle + puddle.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Reanimated Warrior",
              nameHtml: `Reanimated Warrior`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1257920/dread-slash">Dread Slash</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Tank buster + stacking damage increase on the mob. Use defensives late in pulls.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1257716/reanimation">Reanimation</a> — interrupt or CC to stop the channel.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Tormented Shade",
              nameHtml: `Tormented Shade`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259255/spirit-rend">Spirit Rend</a> — random target. Interrupt as many casts as possible, Magic dispel the DoT.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Bound Defender (Immune to CC)",
              nameHtml: `Bound Defender <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259270/spectral-strikes">Spectral Strikes</a> — passive AoE shadow damage on melee swings.`,
                `<a href="https://www.wowhead.com/beta/spell=1259651/soulstorms">Soulstorms</a> — rotating AoE around the mob. Dodge them.`,
                `<a href="https://www.wowhead.com/beta/spell=269928/vigilant-defense">Vigilant Defense</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Face mob away from group — reflects attacks back at attackers hitting its front.</span>`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Rokh'zal (Immune to CC)",
              nameHtml: `Rokh'zal <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259786/ritual-sacrifice">Ritual Sacrifice</a> — roots a random player on the altar. Use freedom or destroy the shackles.`,
                `<a href="https://www.wowhead.com/beta/spell=1259777/invoke-shadow">Invoke Shadow</a> — pull effect + AoE. Fight the pull and dodge.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Hollow Soulrender (Immune to CC)",
              nameHtml: `Hollow Soulrender <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1264327/shadowfrost-blast">Shadowfrost Blast</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Targets you. Use spare interrupts on this.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1259677/rend-souls">Rend Souls</a> — causes nearby Lost Souls to explode. Clear Lost Souls before pull.`,
                `<a href="https://www.wowhead.com/beta/spell=1271623/frost-nova">Frost Nova</a> — random target. Move away from allies, Magic dispel the root or freedom to immune.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Gloomwing Bat",
              nameHtml: `Gloomwing Bat`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259182/piercing-screech">Piercing Screech</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Line towards tank. Interrupt or face away from group.</span>`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 2",
        name: "Vordaza",
        subtitle: "Healing check — constant AoE, kite phantoms into each other, burst shield on Necrotic Convergence",
        image: "/assets/vordaza_boss_fight.jpg",
        abilities: [
          {
            name: "Drain Soul",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1251554/drain-soul",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Tank-targeted channel.</li><li><span style="color: var(--tank-color); font-weight: 600;">Use a defensive for the full duration.</span></li></ul>`,
          },
          {
            name: "Withering Miasma",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1264987/withering-miasma",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Passive group damage pulsing every few seconds for the entire fight.</li><li><span class="warn">Space out phantom detonations — each adds stacking DoT on top of the passive damage.</span></li></ul>`,
          },
          {
            name: "Wrest Phantoms",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1251204/wrest-phantoms",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Spawns 4 adds at pillars with 99% DR, fixating random players.</li><li><span class="warn">Lethal 3 yd AoE if they touch a player.</span></li><li><span class="tip">Kite phantoms into each other to safely detonate them.</span></li></ul>`,
          },
          {
            name: "Necrotic Convergence",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1250708/necrotic-convergence",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>After every even Wrest Phantoms — boss gains interrupt-immune shield + channels increasing AoE.</li><li><span class="warn">Burn the shield fast and interrupt immediately.</span></li><li>Don't detonate phantoms near centre to keep melee uptime.</li></ul>`,
          },
          {
            name: "Unmake",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1252054/unmake",
            role: "everyone",
            importance: null,
            descriptionHtml: `<ul><li>Random target line attack that sweeps slowly across the room. Sidestep it.</li></ul>`,
          },
          {
            name: "Necrotic Convergence",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1250708/necrotic-convergence",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li>Interrupt-immune shield — must be DPS'd down to stop the channel.</li><li><span class="tip">Save burst CDs for this. The longer it channels, the more likely the group wipes.</span></li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Bridge — Trash Before Rak'tul",
        content: [
          { type: "quickRef", data: { html: `<strong>Environment:</strong> Shadow orbs bounce down the bridge until mini-boss Zil'jan is killed. Avoid the orbs — they deal heavy damage + knockback.` } },
          {
            type: "mob",
            data: {
              name: "Zil'jan (Immune to CC)",
              nameHtml: `Zil'jan <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1259887/ritual-drums">Ritual Drums</a> — channels heavy pulsing sonic damage (70 yd range) + sends shadow orbs down the bridge. Kill ASAP.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 3 · Final Boss",
        name: "Rak'tul, Vessel of Souls",
        subtitle: "Alternating phases — fight boss then run a bridge gauntlet during intermission",
        image: "/assets/rak_tul_vessel_of_souls_boss_fight.jpg",
        abilities: [
          {
            name: "Spiritbreaker",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1251023/spiritbreaker",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Combo attack on tank — drops a large puddle on completion + huge knockback/knockup.</li><li><span style="color: var(--tank-color); font-weight: 600;">Use a defensive for the channel. Move away from group before final hit.</span></li><li><span class="tip">Back against a brazier near entrance to prevent knockback, or use mobility to cancel it.</span></li></ul>`,
          },
          {
            name: "Deathgorged Vessel",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1248863/deathgorged-vessel",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Passive group damage + circles to dodge throughout the fight.</li><li><span class="warn">Overlaps with Soulbind totem damage — heavy healing during Crush Souls windows.</span></li></ul>`,
          },
          {
            name: "Crush Souls",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1252676/crush-souls",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Marks 3 players — boss jumps to each (5 yd AoE) and spawns a <a href="https://www.wowhead.com/beta/spell=1252777/soulbind">Soulbind</a> Totem.</li><li><span class="tip">Stack totems close for cleave. Kill them fast — they channel damage + pull you in.</span></li><li>Stay 3+ yds away from totems.</li></ul>`,
          },
          {
            name: "Soulrending Roar",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1253788/soulrending-roar",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>After every even Crush Souls — sends group to bridge gauntlet.</li><li><span class="warn">Destroy ALL totems before this cast or they shatter for heavy damage.</span></li></ul>`,
          },
          {
            name: "Bridge Gauntlet",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li><a href="https://www.wowhead.com/beta/spell=1253844/withering-soul">Withering Soul</a> deals increasing damage the longer you're on the bridge.</li><li>Dodge Lost Souls.</li><li><span class="tip">Interrupt/CC all 6 <a href="https://www.wowhead.com/beta/spell=1254010/eternal-suffering">Eternal Suffering</a> Malignant Souls for +25% damage/healing/speed (stacking).</span></li><li><span class="tip">Leave the last one for the tank to pop just before re-entering the boss arena.</span></li></ul>`,
          },
          {
            name: "Post-Intermission DPS Window",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li>Boss is stunned for 45s when you return from the bridge.</li><li><span class="tip">Save damage CDs and lust for this window — especially with Malignant Soul buff stacks active.</span></li></ul>`,
          },
        ],
      },
    },
  ],
};
