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

export const nexusPointXenas: DungeonData = {
  id: "nexus-point-xenas",
  name: "Nexus Point Xenas",
  descriptionHtml: `3 wings — defeat <span class="wing-badge wing-arcane">Arcane</span> and <span class="wing-badge wing-void">Void</span> wings to unlock <span class="wing-badge wing-light">Light</span>`,
  headerImage: "/assets/nexus_point_xenas_header.jpg",
  icon: "/assets/dungeon_nexus_point_xenas.jpg",
  sections: [
    {
      type: "trash",
      data: {
        header: "Arcane Wing — Trash Before Kasreth",
        content: [
          { type: "quickRef", data: { html: `<strong>Environment:</strong> Arcane Tripwires stun for 5s (rogue/engineer can defuse). Broken Pipes spawn puddles. Mana Batteries must be killed within 12s when activated by Circuit Seers. <a href="https://www.wowhead.com/beta/spell=1265334/corespark-surge">Corespark Conduits</a> give a damage buff but apply a stacking DoT — use defensives.` } },
          {
            type: "mob",
            data: {
              name: "Flux Engineer",
              nameHtml: `Flux Engineer`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=249081/suppression-field">Suppression Field</a> — targets random player. Pre-spread. If targeted, minimize movement (bonus damage while moving).`,
                `Drops an active <strong>Mana Battery</strong> on death — swap and kill it ASAP.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Nexus Adept",
              nameHtml: `Nexus Adept`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1262510/umbral-bolt">Umbral Bolt</a> — interrupt with spare kicks.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Circuit Seer (Immune to CC)",
              nameHtml: `Circuit Seer <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1249801/arcing-mana">Arcing Mana</a> — heavy channel damage. Use defensives + healing CDs.`,
                `<a href="https://www.wowhead.com/beta/spell=1257105/erratic-zap">Erratic Zap</a> + <a href="https://www.wowhead.com/beta/spell=1262720/power-flux">Power Flux</a> — dodge circles, move from puddles.`,
                `<a href="https://www.wowhead.com/beta/spell=1257100/circuit-sense">Circuit Sense</a> — activates nearby Mana Batteries. Swap and destroy them immediately.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 1 · Arcane Wing",
        name: "Chief Corewright Kasreth",
        subtitle: "Space management fight — puddles + leylines shrink the room over time",
        image: "/assets/chief_corewright_kasreth_boss_fight.jpg",
        abilities: [
          {
            name: "Arcane Zap",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1250553/arcane-zap",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li><span class="warn">No melee swings.</span> Boss hits tank with instant arcane damage instead.</li><li>Be aware of the damage type for defensive planning.</li></ul>`,
          },
          {
            name: "Corespark Detonation",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1257509/corespark-detonation",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Cast at full energy — applies a <span class="warn">DoT that persists until a large healing absorb is removed.</span></li><li>Prioritize removing the absorb ASAP to stop the DoT. Use healing CDs + group defensives on impact.</li></ul>`,
          },
          {
            name: "Leyline Arrays",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1251579/leyline-array",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Beams spawn on edges and cut across the room — deal arcane damage + slow.</li><li>Remove them by running into a beam while you have <a href="https://www.wowhead.com/beta/spell=1251772/reflux-charge">Reflux Charge</a> (a DoT debuff applied to a player).</li><li>Prioritize beam intersections to clear multiple at once.</li></ul>`,
          },
          {
            name: "Flux Collapse",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1264040/flux-collapse",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Targets 1 player with several small circles that leave puddles (persist 75s).</li><li><strong>Bait near edges or existing puddles</strong> to preserve space.</li></ul>`,
          },
          {
            name: "Corespark Detonation",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1257509/corespark-detonation",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Cast at full energy.</li><li>Massive orb at random player → <span class="warn">knockback + DoT (until healing absorb removed) + huge puddle.</span></li><li>Position to avoid being knocked into puddles or through leylines.</li><li>Use group defensives and healing CDs — the DoT is heavy if absorb isn't removed quickly.</li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Void Wing — Trash Before Nysarra",
        content: [
          {
            type: "mob",
            data: {
              name: "Reformed Voidling",
              nameHtml: `Reformed Voidling`,
              tankRelevant: false,
              abilitiesHtml: [
                `On death becomes a <strong>Smudge</strong> that tries to awaken a nearby Nascent Dreadflail. CC and cleave it down fast.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Cursed Voidcaller",
              nameHtml: `Cursed Voidcaller`,
              tankRelevant: false,
              abilitiesHtml: [
                `On death casts <a href="https://www.wowhead.com/beta/spell=1281636/creeping-void">Creeping Void</a> — burst damage. Use Curse dispels.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Duskfright Herald (Immune to CC)",
              nameHtml: `Duskfright Herald <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1252062/entropic-leech">Entropic Leech</a> — channels on random player. Combat drop or remove the healing absorb to stop it.`,
                `<a href="https://www.wowhead.com/beta/spell=1252076/dark-beckoning">Dark Beckoning</a> — pulsing damage + projectiles. Dodge.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Grand Nullifier",
              nameHtml: `Grand Nullifier`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1282722/nullify">Nullify</a> — <span style="color: var(--accent-red);">interrupt EVERY cast.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1282723/dusk-frights">Dusk Frights</a> — avoid fear zones.`,
                `On death becomes a <strong>Smudge</strong> → same as Reformed Voidling.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Dreadflail (Immune to CC)",
              nameHtml: `Dreadflail <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1282665/void-lash">Void Lash</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Face away from group. Use a defensive.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1282679/flailstorm">Flailstorm</a> — AoE around fixated player. Kite if targeted.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Null Sentinel (Immune to CC)",
              nameHtml: `Null Sentinel <span style="color: var(--accent-red); font-size: 12px;">(Immune to CC)</span>`,
              tankRelevant: true,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1252429/nullwark-blast">Nullwark Blast</a> — <span style="color: var(--tank-color); font-weight: 600;">TANK: Hits you. Defensive for the hit + DoT.</span>`,
                `<a href="https://www.wowhead.com/beta/spell=1252406/dreadbellow">Dreadbellow</a> — knockback + AoE DoT. Watch positioning.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 2 · Void Wing",
        name: "Corewarden Nysarra",
        subtitle: "Starts at 60% HP (actual HP is high) — burn windows every ~1min with 300% damage amp",
        image: "/assets/corewarden_nysarra_boss_fight.jpg",
        abilities: [
          {
            name: "Umbral Lash",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1247937/umbral-lash",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Channeled on tank.</li><li>Ends with <span class="warn">knockback + 50% increased damage taken for 10s.</span></li><li>Extremely dangerous when adds are alive.</li><li><strong>Save a strong defensive for overlaps with Null Vanguard adds.</strong></li></ul>`,
          },
          {
            name: "Null Vanguard",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1252703/null-vanguard",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li>Summons 1 Dreadflail + 2 Grand Nullifiers.</li><li><strong>Pick up adds immediately. Face Dreadflail away during <a href="https://www.wowhead.com/beta/spell=1282665/void-lash">Void Lash</a>.</strong></li><li>Interrupt Grand Nullifiers.</li><li><span class="warn">Kill adds before stun ends</span> — boss casts <a href="https://www.wowhead.com/beta/spell=1252883/devour-the-unworthy">Devour The Unworthy</a> on any survivors.</li></ul>`,
          },
          {
            name: "Lightscar Flare",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1247976/lightscar-flare",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>300% damage amp phase — entire group takes heavy damage standing in the frontal cone.</li><li><span class="warn">Use healing CDs during every burn window. Players may need to briefly step out to survive.</span></li></ul>`,
          },
          {
            name: "Lightscar Flare",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1247976/lightscar-flare",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Boss stunned for 18s — shoots a cone granting <strong>300% damage amp + 30% healing amp.</strong></li><li>Stand in the cone. Avoid the initial beam from Lothraxion (disorients for 5s).</li><li><span class="tip">Line up offensive cooldowns with every burn window.</span></li></ul>`,
          },
          {
            name: "Eclipsing Step",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1249014/eclipsing-step",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Large AoE on 2 players — DoT to anyone hit.</li><li>Spread away from allies.</li><li>Use a defensive if needed.</li></ul>`,
          },
          {
            name: "Null Vanguard",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1252703/null-vanguard",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li>Adds spawn during burn phase — <span class="warn">must die before boss unstuns</span> or he casts <a href="https://www.wowhead.com/beta/spell=1252883/devour-the-unworthy">Devour The Unworthy</a>.</li><li>Keep interrupts on Grand Nullifiers. Cleave adds with boss during damage amp.</li></ul>`,
          },
        ],
      },
    },
    { type: "divider" },
    {
      type: "trash",
      data: {
        header: "Light Wing — Trash Before Lothraxion",
        content: [
          { type: "quickRef", data: { html: `<strong>Unlocks after both wing bosses are killed.</strong> Use the conduit to return to the start, interact with the console to form the bridge.` } },
          {
            type: "mob",
            data: {
              name: "Radiant Swarm",
              nameHtml: `Radiant Swarm`,
              tankRelevant: false,
              abilitiesHtml: [
                `Fixates random players — kite if targeted. Takes extra AoE damage (Cluster Weakness).`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Flarebat",
              nameHtml: `Flarebat`,
              tankRelevant: false,
              abilitiesHtml: [
                `Purge <a href="https://www.wowhead.com/beta/spell=1263785/holy-echo">Holy Echo</a> if possible. On death drops AoE damage + healing zone.`,
              ],
            },
          },
          {
            type: "mob",
            data: {
              name: "Lightwrought",
              nameHtml: `Lightwrought`,
              tankRelevant: false,
              abilitiesHtml: [
                `<a href="https://www.wowhead.com/beta/spell=1263892/holy-bolt">Holy Bolt</a> — keep interrupted.`,
                `<a href="https://www.wowhead.com/beta/spell=1277557/burning-radiance">Burning Radiance</a> — on 2 random players. Magic dispel one ASAP, defensive/heal through the other.`,
              ],
            },
          },
        ],
      },
    },
    {
      type: "boss",
      data: {
        bossNumber: "Boss 3 · Light Wing",
        name: "Lothraxion",
        subtitle: "Space management + intermission — permanent puddles, find the real boss among clones",
        image: "/assets/lothraxion_boss_fight.jpg",
        abilities: [
          {
            name: "Searing Rend",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1257701/searing-rend",
            role: "tank",
            importance: "tank-important",
            descriptionHtml: `<ul><li><span class="warn">Puddles are PERMANENT for the entire fight.</span> Drop them at edges and away from the group.</li><li>Critical to manage space — especially if you didn't clear the whole platform.</li></ul>`,
          },
          {
            name: "Brilliant Dispersion",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1253855/brilliant-dispersion",
            role: "healer",
            importance: "healer-important",
            descriptionHtml: `<ul><li>Targets 3 players — damage + DoT to anyone within 8yds.</li><li><span class="warn">Heavy group healing required. Use healing CDs and defensives, especially if players clip each other.</span></li></ul>`,
          },
          {
            name: "Brilliant Dispersion",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1253855/brilliant-dispersion",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Targets 3 players — damage + DoT to anyone within 8yds, spawns 2 <strong>Fracture Images</strong> per target.</li><li>Spread loosely.</li><li>Use defensives and healing CDs.</li></ul>`,
          },
          {
            name: "Fracture Images",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li><a href="https://www.wowhead.com/beta/spell=1271956/mirrored-rend">Mirrored Rend</a> — hits anyone within 5yds (puddles + knockback).</li><li>Stay away from images.</li><li><a href="https://www.wowhead.com/beta/spell=1255531/flicker">Flicker</a> — images dash at a random player.</li><li>Be ready to dodge.</li></ul>`,
          },
          {
            name: "Divine Guile",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1257595/divine-guile",
            role: "everyone",
            importance: "everyone-important",
            descriptionHtml: `<ul><li>Boss hides among many clones, pulsing group damage.</li><li><span class="warn">Find the real boss and interrupt him.</span> <span class="tip">He's the only one WITHOUT horns of light (bald head).</span> Don't interrupt clones — triggers <a href="https://www.wowhead.com/beta/spell=1271511/core-exposure">Core Exposure</a>.</li><li>Hunter's Mark tracks the real boss through stealth.</li></ul>`,
          },
          {
            name: "Divine Guile",
            wowheadUrl: "https://www.wowhead.com/beta/spell=1257595/divine-guile",
            role: "dps",
            importance: null,
            descriptionHtml: `<ul><li><span class="tip">Save an interrupt for the real boss — don't waste it on a clone.</span></li><li>Hunter's Mark trivializes the intermission if available.</li></ul>`,
          },
        ],
      },
    },
  ],
};
