-- battlefields by zone
-- captured from client 2020-10-24
local battlefields =
{
--[[
    [zoneId] =
    {
        { bit, battlefieldIdInDatabase, requiredItemToTrade }
    },
--]]
    [xi.zone.BEARCLAW_PINNACLE] =
    {
        { 0,  640,    0 },   -- Flames of the Dead (PM5-3 U3)
    --  { 1,  641,    0 },   -- Follow the White Rabbit (ENM)
    --  { 2,  642,    0 },   -- When Hell Freezes Over (ENM)
    --  { 3,  643,    0 },   -- Brothers (ENM) -- TODO: Chthonian Ray mobskill
        { 4,  644,    0 },   -- Holy Cow (ENM)
    --  { 5,    ?, 3454 },   -- Taurassic Park (HKC30)
    },

    [xi.zone.BONEYARD_GULLY] =
    {
        { 0,  672,    0 },   -- Head Wind (PM5-3 U2)
    --  { 1,  673,    0 },   -- Like the Wind (ENM) -- TODO: mob constantly runs during battle
        { 2,  674,    0 },   -- Sheep in Antlion's Clothing (ENM)
    --  { 3,  675,    0 },   -- Shell We Dance? (ENM) -- TODO: Needs testing, cleanup, and mixin work
    --  { 4,  676,    0 },   -- Totentanz (ENM)
    --  { 5,  677,    0 },   -- Tango with a Tracker (Quest)
    --  { 6,  678,    0 },   -- Requiem of Sin (Quest)
    --  { 7,  679, 3454 },   -- Antagonistic Ambuscade (HKC30)
    --  { 8,    ?,    0 },   -- *Head Wind (HTMBF)
    },

    [xi.zone.THE_SHROUDED_MAW] =
    {
        { 0,  704,    0 },   -- Darkness Named (PM3-5)
    --  { 1,  705,    0 },   -- Test Your Mite (ENM)
        { 2,  706,    0 },   -- Waking Dreams (Quest)
    --  { 3,    ?,    0 },   -- *Waking Dreams (HTMBF)
    },

    [xi.zone.MINE_SHAFT_2716] =
    {
        { 0,  736,    0 },   -- A Century of Hardship (PM5-3 L3)
    --  { 1,  737,    0 },   -- Return to the Depths (Quest)
    --  { 2,  738,    0 },   -- Bionic Bug (ENM)
    --  { 3,  739,    0 },   -- Pulling the Strings (ENM)
    --  { 4,  740,    0 },   -- Automaton Assault (ENM)
    --  { 5,  741, 3455 },   -- The Mobline Comedy (HKC50)
    },

    [xi.zone.SPIRE_OF_HOLLA] =
    {
        { 0,  768,    0 },   -- Ancient Flames Beckon (PM1-3)
    --  { 1,  769,    0 },   -- Simulant (ENM)
    --  { 2,  770, 3351 },   -- Empty Hopes (KC30)
    },

    [xi.zone.SPIRE_OF_DEM] =
    {
        { 0,  800,    0 },   -- Ancient Flames Beckon (PM1-3)
    --  { 1,  801,    0 },   -- You Are What You Eat (ENM)
    --  { 2,  802, 3351 },   -- Empty Dreams (KC30)
    },

    [xi.zone.SPIRE_OF_MEA] =
    {
        { 0,  832,    0 },   -- Ancient Flames Beckon (PM1-3)
    --  { 1,  833,    0 },   -- Playing Host (ENM)
    --  { 2,  834, 3351 },   -- Empty Desires (KC30)
    },

    [xi.zone.SPIRE_OF_VAHZL] =
    {
        { 0,  864,    0 },   -- Desires of Emptiness (PM5-2)
    --  { 1,  865,    0 },   -- Pulling the Plug (ENM)
    --  { 2,  866, 3352 },   -- Empty Aspirations (KC50)
    },

    [xi.zone.RIVERNE_SITE_B01] =
    {
        { 0,  896,    0 },   -- Storms of Fate (Quest)
    --  { 1,  897, 2108 },   -- The Wyrmking Descends (BCNM)
    },

    [xi.zone.RIVERNE_SITE_A01] =
    {
    --  { 0,  928, 1842 },   -- Ouryu Cometh (BCNM)
    },

    [xi.zone.MONARCH_LINN] =
    {
        { 0,  960,    0 },   -- Ancient Vows (PM2-5)
        { 1,  961,    0 },   -- The Savage (PM4-2)
    --  { 2,  962,    0 },   -- Fire in the Sky (ENM)
    --  { 3,  963,    0 },   -- Bad Seed (ENM)
    --  { 4,  964,    0 },   -- Bugard in the Clouds (ENM)
    --  { 5,  965,    0 },   -- Beloved of the Atlantes (ENM)
    --  { 6,  966,    0 },   -- Uninvited Guests (Quest)
    --  { 7,  967, 3455 },   -- Nest of Nightmares (HKC50)
    --  { 8,    ?,    0 },   -- *The Savage (HTMBF)
    },

    [xi.zone.SEALIONS_DEN] =
    {
        { 0,  992,    0 },   -- One to Be Feared (PM6-4)
        { 1,  993,    0 },   -- The Warrior's Path (PM7-5)
    --  { 2,    ?,    0 },   -- *The Warrior's Path (HTMBF)
    --  { 3,    ?,    0 },   -- *One to Be Feared (HTMBF)
    },

    [xi.zone.THE_GARDEN_OF_RUHMET] =
    {
        { 0, 1024,    0 },   -- When Angels Fall (PM8-3)
    },

    [xi.zone.EMPYREAL_PARADOX] =
    {
        { 0, 1056,    0 },   -- Dawn (PM8-4)
        { 1, 1057,    0 },   -- Apocalypse Nigh (Quest)
    --  { 2,    ?,    0 },   -- Both Paths Taken (ROVM2-9-2)
    --  { 3,    ?,    0 },   -- *Dawn (HTMBF)
    --  { 4,    ?,    0 },   -- The Winds of Time (ROVM3-1-26)
    --  { 5,    ?,    0 },   -- Sealed Fate (Master Trial)
    },

    [xi.zone.TEMENOS] =
    {
    --  { 0, 1299,    0 },   -- Northern Tower
    --  { 1, 1300,    0 },   -- Eastern Tower
    --  { 2, 1298,    0 },   -- Western Tower
    --  { 3, 1306,   -1 },   -- Central 4th Floor (multiple items needed: 1907, 1908, 1986)
    --  { 4, 1305, 1904 },   -- Central 3rd Floor
    --  { 5, 1304, 1905 },   -- Central 2nd Floor
    --  { 6, 1303, 1906 },   -- Central 1st Floor
    --  { 7, 1301, 2127 },   -- Central Basement
    --  { 8, 1302,    0 },   -- Central Basement II
    --  { 9, 1307,    0 },   -- Central 4th Floor II
    },

    [xi.zone.ARRAPAGO_REEF] =
    {
    --  { 0,    ?,    0 },   -- Lamia Reprisal
    },

    [xi.zone.TALACCA_COVE] =
    {
    --  { 0, 1088,    0 },   -- Call to Arms (ISNM)
    --  { 1, 1089,    0 },   -- Compliments to the Chef (ISNM)
    --  { 2, 1090,    0 },   -- Puppetmaster Blues (Quest)
        { 3, 1091, 2332 },   -- Breaking the Bonds of Fate (COR LB5)
        { 4, 1092,    0 },   -- Legacy of the Lost (TOAU35)
    --  { 5,    ?,    0 },   -- *Legacy of the Lost (HTMBF)
    },

    [xi.zone.HALVUNG] =
    {
    --  { 0,    ?,    0 },   -- Halvung Invasion
    },

    [xi.zone.NAVUKGO_EXECUTION_CHAMBER] =
    {
    --  { 0, 1120,    0 },   -- Tough Nut to Crack (ISNM)
    --  { 1, 1121,    0 },   -- Happy Caster (ISNM)
        { 2, 1122,    0 },   -- Omens (BLU AF2)
        { 3, 1123, 2333 },   -- Achieving True Power (PUP LB5)
        { 4, 1124,    0 },   -- Shield of Diplomacy (TOAU22)
    },

    [xi.zone.MAMOOK] =
    {
    --  { 0,    ?,    0 },   -- Mamook Incursion
    },

    [xi.zone.JADE_SEPULCHER] =
    {
    --  { 0, 1152,    0 },   -- Making a Mockery (ISNM)
    --  { 1, 1153,    0 },   -- Shadows of the Mind (ISNM)
        { 2, 1154, 2331 },   -- The Beast Within (BLU LB5)
    --  { 3, 1155,    0 },   -- Moment of Truth (Quest)
        { 4, 1156,    0 },   -- Puppet in Peril (TOAU29)
    --  { 5,    ?,    0 },   -- *Puppet in Peril (HTMBF)
    },

    [xi.zone.HAZHALM_TESTING_GROUNDS] =
    {
    --  { 0, 1184,    0 },   -- The Rider Cometh (Quest)
    },

    [xi.zone.LA_VAULE_S] =
    {
    --  { 0,    ?,    0 },   -- Splitting Heirs (S)
        { 1, 2721,    0 },   -- Purple, The New Black
    --  { 2,    ?,    0 },   -- The Blood-bathed Crown
    },

    [xi.zone.BEADEAUX_S] =
    {
    --  { 0,    ?,    0 },   -- Cracking Shells (B)
    --  { 1,    ?,    0 },   -- The Buried God
    },

    [xi.zone.CASTLE_OZTROJA_S] =
    {
    --  { 0,    ?,    0 },   -- Plucking Wings (W)
    --  { 1,    ?,    0 },   -- A Malicious Manifest
    --  { 2,    ?,    0 },   -- Manifest Destiny
    --  { 3,    ?,    0 },   -- At Journey's End
    },

    [xi.zone.HORLAIS_PEAK] =
    {
        {  0,    0,    0 },   -- The Rank 2 Final Mission (Mission 2-3)
        {  1,    1, 1131 },   -- Tails of Woe (BS40)
        {  2,    2, 1130 },   -- Dismemberment Brigade (BS60)
        {  3,    3,    0 },   -- The Secret Weapon (San d'Oria 7-2)
        {  4,    4, 1177 },   -- Hostile Herbivores (BS50)
        {  5,    5, 1426 },   -- Shattering Stars (WAR LB5)
        {  6,    6, 1429 },   -- Shattering Stars (BLM LB5)
        {  7,    7, 1436 },   -- Shattering Stars (RNG LB5)
        {  8,    8, 1552 },   -- Carapace Combatants (BS30)
    --  {  9,    9, 1551 },   -- Shooting Fish (BS20) -- TODO: mobs use ranged attacks with knockback
        { 10,   10, 1552 },   -- Dropping Like Flies (BS30)
    --  { 11,   11, 1553 },   -- Horns of War (KS99) -- TODO: Chlevnik is unscripted
        { 12,   12, 1131 },   -- Under Observation (BS40)
        { 13,   13, 1177 },   -- Eye of the Tiger (BS50) -- TODO: Crossthrash mobskill
    --  { 14,   14, 1130 },   -- Shots in the Dark (BS60) -- TODO: Warmachine combat behavior
        { 15,   15, 1175 },   -- Double Dragonian (KS30) -- TODO: Chaos Blade strengthens after 2hr
    --  { 16,   16, 1178 },   -- Today's Horoscope (KS30)
        { 17,   17, 1180 },   -- Contaminated Colosseum (KS30)
    --  { 18,   18, 3351 },   -- Kindergarten Cap (KC30)
    --  { 19,   19, 3352 },   -- Last Orc-Shunned Hero (KC50)
        { 20,   20,    0 },   -- Beyond Infinity (Quest)
    --  { 21,    ?, 4062 },   -- *Tails of Woe (SKC10)
    --  { 22,    ?, 4063 },   -- *Dismemberment Brigade (SKC20)
    --  { 23,    ?,    0 },   -- A Feast Most Dire (Quest)
    --  { 24,    ?,    0 },   -- A.M.A.N. Trove (Mars)
    --  { 25,    ?,    0 },   -- A.M.A.N. Trove (Venus)
    --  { 26,    ?,    0 },   -- Inv. from Excenmille
    --  { 27,    ?,    0 },   -- Inv. from Excenmille and Co.
    },

    [xi.zone.GHELSBA_OUTPOST] =
    {
        { 0,   32,    0 },   -- Save the Children (San d'Oria 1-3)
        { 1,   33,    0 },   -- The Holy Crest (Quest)
        { 2,   34, 1551 },   -- Wings of Fury (BS20)
        { 3,   35, 1552 },   -- Petrifying Pair (BS30)
        { 4,   36, 1552 },   -- Toadal Recall (BS30) -- TODO: shroom-in-cap mechanic
    --  { 5,   37,    0 },   -- Mirror, Mirror (Quest)
    },

    [xi.zone.WAUGHROON_SHRINE] =
    {
        {  0,   64,    0 },   -- The Rank 2 Final Mission (Mission 2-3)
        {  1,   65, 1131 },   -- The Worm's Turn (BS40)
        {  2,   66, 1130 },   -- Grimshell Shocktroopers (BS60)
        {  3,   67,    0 },   -- On My Way (Bastok 7-2)
        {  4,   68, 1166 },   -- A Thief in Norg!? (Quest)
        {  5,   69, 1177 },   -- 3, 2, 1... (BS50) -- TODO: Self Destruct does not display correct message in chat log
        {  6,   70, 1430 },   -- Shattering Stars (RDM LB5)
        {  7,   71, 1431 },   -- Shattering Stars (THF LB5)
        {  8,   72, 1434 },   -- Shattering Stars (BST LB5)
        {  9,   73, 1552 },   -- Birds of a Feather (BS30)
    --  { 10,   74, 1551 },   -- Crustacean Conundrum (BS20) -- TODO: You can only do 0-2 damage no matter what your attack is
        { 11,   75, 1552 },   -- Grove Guardians (BS30)
    --  { 12,   76, 1553 },   -- The Hills are Alive (KS99) -- TODO: Tartaruga Gigante is not coded
        { 13,   77, 1131 },   -- Royal Jelly (BS40)
    --  { 14,   78, 1177 },   -- The Final Bout (BS50) -- TODO: mobskills Big Blow and Counterstance
        { 15,   79, 1130 },   -- Up in Arms (BS60)
    --  { 16,   80, 1175 },   -- Copycat (KS30)
    --  { 17,   81, 1178 },   -- Operation Desert Swarm (KS30) -- TODO: Wild Rage gets stronger as they die. Build sleep resistance. Testing.
    --  { 18,   82, 1180 },   -- Prehistoric Pigeons (KS30) -- TODO: Build resistance to sleep quickly. When one dies, remaining ones become more powerful.
    --  { 19,   83, 3351 },   -- The Palborough Project (KC30)
    --  { 20,   84, 3352 },   -- Shell Shocked (KC50)
        { 21,   85,    0 },   -- Beyond Infinity (Quest)
    --  { 22,    ?, 4062 },   -- *The Worm's Tail (SKC10)
    --  { 23,    ?, 4063 },   -- *Grimshell Shocktroopers (SKC20)
    --  { 24,    ?,    0 },   -- A Feast Most Dire (Quest)
    --  { 25,    ?,    0 },   -- A.M.A.N. Trove (Mars)
    --  { 26,    ?,    0 },   -- A.M.A.N. Trove (Venus)
    --  { 27,    ?,    0 },   -- Invitation from Naji
    --  { 28,    ?,    0 },   -- Invitation from Naji and Co.
    },

    [xi.zone.BALGAS_DAIS] =
    {
        {  0,   96,    0 },   -- The Rank 2 Final Mission (Mission 2-3)
        {  1,   97, 1131 },   -- Steamed Sprouts (BS40)
        {  2,   98, 1130 },   -- Divine Punishers (BS60)
        {  3,   99,    0 },   -- Saintly Invitation (Windurst 6-2)
        {  4,  100, 1177 },   -- Treasure and Tribulations (BS50)
        {  5,  101, 1427 },   -- Shattering Stars (MNK LB5)
        {  6,  102, 1428 },   -- Shattering Stars (WHM LB5)
        {  7,  103, 1440 },   -- Shattering Stars (SMN LB5)
        {  8,  104, 1552 },   -- Creeping Doom (BS30)
        {  9,  105, 1551 },   -- Charming Trio (BS20)
        { 10,  106, 1552 },   -- Harem Scarem (BS30)
    --  { 11,  107, 1553 },   -- Early Bird Catches the Wyrm (KS99)
        { 12,  108, 1131 },   -- Royal Succession (BS40)
        { 13,  109, 1177 },   -- Rapid Raptors (BS50)
        { 14,  110, 1130 },   -- Wild Wild Whiskers (BS60) -- TODO: should use petrifactive breath more often than other mobskill. Message before spellcasting.
    --  { 15,  111, 1175 },   -- Seasons Greetings (KS30)
    --  { 16,  112, 1178 },   -- Royale Ramble (KS30)
    --  { 17,  113, 1180 },   -- Moa Constrictors (KS30)
    --  { 18,  114, 3351 },   -- The V Formation (KC30)
    --  { 19,  115, 3352 },   -- Avian Apostates (KC50)
        { 20,  116,    0 },   -- Beyond Infinity (Quest)
    --  { 21,    ?, 4062 },   -- *Steamed Sprouts (SKC10)
    --  { 22,    ?, 4063 },   -- *Divine Punishers (SKC20)
    --  { 23,    ?,    0 },   -- A Feast Most Dire (Quest)
    --  { 24,    ?,    0 },   -- A.M.A.N. Trove (Mars)
    --  { 25,    ?,    0 },   -- A.M.A.N. Trove (Venus)
    --  { 26,    ?,    0 },   -- Inv. from Kupipi
    --  { 27,    ?,    0 },   -- Inv. from Kupipi and Co.
    },

    [xi.zone.THRONE_ROOM_S] =
    {
    --  { 0,  352,    0 },   -- Fiat Lux (Campaign)
    --  { 1,  353,    0 },   -- Darkness Descends (WOTG37)
    --  { 2,  354,    0 },   -- Bonds of Mythril (Quest)
    --  { 3,    ?,    0 },   -- Unafraid of the Dark (Merit Battlefield)
    },

    [xi.zone.SACRIFICIAL_CHAMBER] =
    {
        { 0,  128,    0 },   -- The Temple of Uggalepih (ZM4)
        { 1,  129, 1130 },   -- Jungle Boogymen (BS60)
        { 2,  130, 1130 },   -- Amphibian Assault (BS60)
    --  { 3,  131,    0 },   -- Project: Shantottofication (ASA13)
    --  { 4,  132, 3352 },   -- Whom Wilt Thou Call (KC50)
    --  { 5,    ?, 4063 },   -- *Jungle Boogymen (SKC20)
    --  { 6,    ?, 4063 },   -- *Amphibian Assault (SKC20)
    },

    [xi.zone.THRONE_ROOM] =
    {
        { 0,  160,    0 },   -- The Shadow Lord Battle (Mission 5-2)
        { 1,  161,    0 },   -- Where Two Paths Converge (Bastok 9-2)
    --  { 2,  162, 1130 },   -- Kindred Spirits (BS60)
        { 3,  163, 2557 },   -- Survival of the Wisest (SCH LB5)
    --  { 4,  164,    0 },   -- Smash! A Malevolent Menace (MKD14)
    --  { 5,    ?, 4063 },   -- *Kindred Spirits (SKC20)
    --  { 6,    ?,    0 },   -- *The Shadowlord Battle (HTMBF)
    --  { 7,    ?,    0 },   -- True Love
    --  { 8,    ?,    0 },   -- A Fond Farewell
    },

    [xi.zone.CHAMBER_OF_ORACLES] =
    {
        {  0,  192,    0 },   -- Through the Quicksand Caves (ZM6)
        {  1,  193, 1130 },   -- Legion XI Comitatensis (BS60)
        {  2,  194, 1437 },   -- Shattering Stars (SAM LB5)
        {  3,  195, 1438 },   -- Shattering Stars (NIN LB5)
        {  4,  196, 1439 },   -- Shattering Stars (DRG LB5)
    --  {  5,  197, 1175 },   -- Cactuar Suave (KS30)
        {  6,  198, 1178 },   -- Eye of the Storm (KS30)
    --  {  7,  199, 1180 },   -- The Scarlet King (KS30)
    --  {  8,  200,    0 },   -- Roar! A Cat Burglar Bares Her Fangs (MKD10)
    --  {  9,  201, 3352 },   -- Dragon Scales (KC50)
    --  { 10,    ?, 4063 },   -- *Legion XI Comitatensis (SKC20)
    },

    [xi.zone.FULL_MOON_FOUNTAIN] =
    {
        { 0,  224,    0 },   -- The Moonlit Path (Quest)
        { 1,  225,    0 },   -- Moon Reading (Windurst 9-2)
    --  { 2,  226,    0 },   -- Waking the Beast (Quest)
    --  { 3,  227,    0 },   -- Battaru Royale (ASA10)
    --  { 4,    ?,    0 },   -- *The Moonlit Path (HTMBF)
    --  { 5,    ?,    0 },   -- *Waking the Beast (HTMBF)
    },

    [xi.zone.STELLAR_FULCRUM] =
    {
        { 0,  256,    0 },   -- Return to Delkfutt's Tower (ZM8)
    --  { 1,  257,    0 },   -- The Indomitable Triumvirate (Mog Bonanza)
    --  { 2,  258,    0 },   -- The Dauntless Duo (Mog Bonanza)
    --  { 3,  259,    0 },   -- The Solitary Demolisher (Mog Bonanza)
    --  { 4,  260,    0 },   -- Heroine's Combat (Mog Bonanza)
    --  { 5,  261,    0 },   -- Mercenary Camp (Mog Bonanza)
    --  { 6,  262,    0 },   -- Ode of Life Bestowing (ACP11)
    --  { 7,    ?,    0 },   -- *Return to Delkfutt's Tower (HTMBF)
    --  { 8,    ?,    0 },   -- True Love
    --  { 9,    ?,    0 },   -- A Fond Farewell
    },

    [xi.zone.LALOFF_AMPHITHEATER] =
    {
        {  0,  288,    0 },   -- Ark Angels 1 (ZM14)
        {  1,  289,    0 },   -- Ark Angels 2 (ZM14)
        {  2,  290,    0 },   -- Ark Angels 3 (ZM14)
        {  3,  291,    0 },   -- Ark Angels 4 (ZM14)
        {  4,  292,    0 },   -- Ark Angels 5 (ZM14)
        {  5,  293, 1550 },   -- Divine Might (ZM14)
    --  {  6,    ?,    0 },   -- *Ark Angels 1 (HTMBF)
    --  {  7,    ?,    0 },   -- *Ark Angels 2 (HTMBF)
    --  {  8,    ?,    0 },   -- *Ark Angels 3 (HTMBF)
    --  {  9,    ?,    0 },   -- *Ark Angels 4 (HTMBF)
    --  { 10,    ?,    0 },   -- *Ark Angels 5 (HTMBF)
    --  { 11,    ?,    0 },   -- *Divine Might (HTMBF)
    },

    [xi.zone.THE_CELESTIAL_NEXUS] =
    {
        { 0,  320,    0 },   -- The Celestial Nexus (ZM16)
    --  { 1,    ?,    0 },   -- *The Celestial Nexus (HTMBF)
    },

    [xi.zone.WALK_OF_ECHOES] =
    {
    --  { 0,    ?,    0 },   -- When Wills Collide (WOTG46)
    --  { 1,  385,    0 },   -- Maiden of the Dusk (WOTG51)
    --  { 2,    ?,    0 },   -- Champion of the Dawn (Quest)
    --  { 3,    ?,    0 },   -- A Forbidden Reunion (Quest)
    },

    [xi.zone.CLOISTER_OF_GALES] =
    {
        { 0,  416,    0 },   -- Trial by Wind (Quest)
        { 1,  417, 1174 },   -- Carbuncle Debacle (Quest)
        { 2,  418, 1546 },   -- Trial-size Trial by Wind (Quest)
    --  { 3,  419,    0 },   -- Waking the Beast (Quest)
        { 4,  420,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 5,    ?,    0 },   -- *Trial by Wind (HTMBF)
    },

    [xi.zone.CLOISTER_OF_STORMS] =
    {
        { 0,  448,    0 },   -- Trial by Lightning (Quest)
        { 1,  449, 1172 },   -- Carbuncle Debacle (Quest)
        { 2,  450, 1548 },   -- Trial-size Trial by Lightning (Quest)
    --  { 3,  451,    0 },   -- Waking the Beast (Quest)
        { 4,  452,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 5,    ?,    0 },   -- *Trial by Lightning (HTMBF)
    },

    [xi.zone.CLOISTER_OF_FROST] =
    {
        { 0,  480,    0 },   -- Trial by Ice (Quest)
        { 1,  481, 1171 },   -- Class Reunion (Quest)
        { 2,  482, 1545 },   -- Trial-size Trial by Ice (Quest)
    --  { 3,  483,    0 },   -- Waking the Beast (Quest)
        { 4,  484,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 5,    ?,    0 },   -- *Trial by Ice (HTMBF)
    },

    [xi.zone.QUBIA_ARENA] =
    {
        {  0,  512,    0 },   -- The Rank 5 Mission (Mission 5-1)
    --  {  1,  513, 1175 },   -- Come Into My Parlor (KS30)
    --  {  2,  514, 1178 },   -- E-vase-ive Action (KS30)
        {  3,  515, 1180 },   -- Infernal Swarm (KS30)
        {  4,  516,    0 },   -- The Heir to the Light (San d'Oria 9-2)
        {  5,  517, 1432 },   -- Shattering Stars (PLD LB5)
        {  6,  518, 1433 },   -- Shattering Stars (DRK LB5)
        {  7,  519, 1435 },   -- Shattering Stars (BRD LB5)
        {  8,  520, 1130 },   -- Demolition Squad (BS60)
    --  {  9,  521, 1552 },   -- Die by the Sword (BS30) -- TODO: mob damage type rotation mobskills furious flurry, smite of fury, whispers of ire
        { 10,  522, 1552 },   -- Let Sleeping Dogs Die (BS30)
        { 11,  523, 1130 },   -- Brothers D'Aurphe (BS60)
        { 12,  524, 1131 },   -- Undying Promise (BS40) -- TODO: model size increases with each reraise
        { 13,  525, 1131 },   -- Factory Rejects (BS40) -- TODO: dolls grow size/power based on hidden timer. (wikis disagree on TP moves? factory immune? factory model?)
        { 14,  526, 1177 },   -- Idol Thoughts (BS50)
        { 15,  527, 1177 },   -- An Awful Autopsy (BS50) -- TODO: mobskill Infernal Pestilence
    --  { 16,  528, 1130 },   -- Celery (BS60) -- TODO: mobs do not have their specific weaknesses. mobskill Bane.
    --  { 17,  529,    0 },   -- Mirror Images (Quest)
        { 18,  530, 2556 },   -- A Furious Finale (DNC LB5)
    --  { 19,  531,    0 },   -- Clash of the Comrades (Quest)
    --  { 20,  532,    0 },   -- Those Who Lurk in Shadows (ACP7)
        { 21,  533,    0 },   -- Beyond Infinity (Quest)
    --  { 22,    ?, 4062 },   -- *Factory Rejects (SKC10)
    --  { 23,    ?, 4063 },   -- *Demolition Squad (SKC20)
    --  { 24,    ?, 4063 },   -- *Brothers D'Aurphe (SKC20)
    --  { 25,    ?,    0 },   -- Mumor's Encore (Sunbreeze Festival)
    },

    [xi.zone.CLOISTER_OF_FLAMES] =
    {
        { 0,  544,    0 },   -- Trial by Fire (Quest)
        { 1,  545, 1544 },   -- Trial-size Trial by Fire (Quest)
    --  { 2,  546,    0 },   -- Waking the Beast (Quest)
        { 3,  547,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 4,    ?,    0 },   -- *Trial by Fire (HTMBF)
    },

    [xi.zone.CLOISTER_OF_TREMORS] =
    {
        { 0,  576,    0 },   -- Trial by Earth (Quest)
        { 1,  577, 1169 },   -- The Puppet Master (Quest)
        { 2,  578, 1547 },   -- Trial-size Trial by Earth (Quest)
    --  { 3,  579,    0 },   -- Waking the Beast (Quest)
        { 4,  580,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 5,    ?,    0 },   -- *Trial by Earth (HTMBF)
    },

    [xi.zone.CLOISTER_OF_TIDES] =
    {
        { 0,  608,    0 },   -- Trial by Water (Quest)
        { 1,  609, 1549 },   -- Trial-size Trial by Water (Quest)
    --  { 2,  610,    0 },   -- Waking the Beast (Quest)
        { 3,  611,    0 },   -- Sugar-coated Directive (ASA4)
    --  { 4,    ?,    0 },   -- *Trial by Water (HTMBF)
    },

}
