{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "Outlaw v2.6: raid and Mythic+, top logs, SimulationCraft 12.1",
  "specID": 260,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": [
    "Outlaw, raid and Mythic+. Based on the top Warcraft Logs players and the SimulationCraft action list.",
    "Ignore main icon: on. Slot 1 is a macro Adrenaline Rush + Killing Spree (off the GCD, in the queue window); slot 4 Keep It Rolling is off the GCD; slot 8 Killing Spree is channeled.",
    "While more than 8% of the Killing Spree aura is left, nothing is pressed: otherwise the next button cuts the channel before the last hit.",
    "Combo points in percent of 7: 3 = 43%, 5 = 71%, 6 = 86% (threshold 80 = 6+).",
    "",
    "v2.6: levels 3–4 of Roll the Bones aren't rerolled near the end: they run out, and the next roll usually has Loaded Dice.",
    "v2.5: Adrenaline Rush only at 1–5 combo points: on the pull Sinister Strike first, then the macro (at 0 combo points its Killing Spree doesn't cast)."
  ],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Double_Trouble", "label": "Double Trouble [1214934]", "spell": 1214934},
    {"n": 2, "alias": "Triple_Threat", "label": "Triple Threat [1214935]", "spell": 1214935},
    {"n": 3, "alias": "Jackpot", "label": "Jackpot [1214937]", "spell": 1214937},
    {"n": 4, "alias": "Loaded_Dice", "label": "Loaded Dice [256171]", "spell": 256171},
    {"n": 5, "alias": "Blade_Flurry_Buff", "label": "Blade Flurry [13877]", "spell": 13877},
    {"n": 6, "alias": "Adrenaline_Rush_Buff", "label": "Adrenaline Rush [13750]", "spell": 13750},
    {"n": 7, "alias": "Opportunity", "label": "Opportunity [195627]", "spell": 195627},
    {"n": 8, "alias": "Palmed_Bullets", "label": "Palmed Bullets [1265931]", "spell": 1265931},
    {"n": 9, "alias": "Fang_Strike", "label": "Fang Strike [1301405]", "spell": 1301405},
    {"n": 10, "alias": "Killing_Spree_Buff", "label": "Killing Spree, channel [51690]", "spell": 51690}
  ],
  "slots": [
    {
      "n": 1,
      "alias": "Adrenaline_Rush",
      "label": "Adrenaline Rush + Killing Spree (macro)",
      "spell": 13750,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": true,
      "queue": true
    },
    {
      "n": 2,
      "alias": "Blade_Flurry",
      "label": "Blade Flurry",
      "spell": 13877,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 3,
      "alias": "Roll_the_Bones",
      "label": "Roll the Bones",
      "spell": 1214909,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 4,
      "alias": "Keep_It_Rolling",
      "label": "Keep It Rolling",
      "spell": 381989,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": true,
      "queue": false
    },
    {
      "n": 5,
      "alias": "Preparation",
      "label": "Preparation",
      "spell": 1277933,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 6,
      "alias": "Blade_Rush",
      "label": "Blade Rush",
      "spell": 271877,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 7,
      "alias": "Between_the_Eyes",
      "label": "Between the Eyes",
      "spell": 315341,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 8,
      "alias": "Killing_Spree",
      "label": "Killing Spree",
      "spell": 51690,
      "show": "target",
      "manual": false,
      "channel": true,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 9,
      "alias": "Dispatch",
      "label": "Dispatch",
      "spell": 2098,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 10,
      "alias": "Pistol_Shot",
      "label": "Pistol Shot",
      "spell": 185763,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 11,
      "alias": "Sinister_Strike",
      "label": "Sinister Strike",
      "spell": 193315,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    }
  ],
  "rules": [
    {
      "use": "Adrenaline_Rush",
      "name": "Adrenaline Rush (+ Killing Spree by the macro) at 1–5 combo points",
      "note": ["=== Cooldowns ==="],
      "when": [
        {
          "all": [
            "Adrenaline_Rush_Buff.down",
            "Combo_Points >= 14",
            "Combo_Points <= 71",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "1–5 combo points: at 0 the macro doesn't cast Killing Spree"
        }
      ]
    },
    {
      "use": "Killing_Spree",
      "name": "Killing Spree: in a fresh Adrenaline Rush at 6+ combo points, before Between the Eyes",
      "when": [
        {
          "all": [
            "Adrenaline_Rush_Buff.up",
            "Adrenaline_Rush.cd >= 67",
            "Combo_Points >= 80",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "Adrenaline Rush pressed recently; after Preparation wait for a new one"
        }
      ]
    },
    {
      "use": "Keep_It_Rolling",
      "name": "Keep It Rolling: extend level 3–4",
      "note": [
        "=== Roll the Bones ===",
        "Roll chances: level 1 55%, level 2 30%, level 3 10%, level 4 5%; Loaded Dice (after Adrenaline Rush) adds a level.",
        "Levels 3–4: extend with Keep It Rolling, don't reroll; level 2: reroll with Loaded Dice any time, without it only at the end; levels 0–1: always.",
        "Without Loaded Dice don't roll when Adrenaline Rush is about to come back: Adrenaline Rush first, then roll with Loaded Dice."
      ],
      "when": [
        {"all": ["Triple_Threat.up", "Killing_Spree_Buff.duration <= 8"]},
        {"all": ["Jackpot.up", "Killing_Spree_Buff.duration <= 8"]}
      ]
    },
    {
      "use": "Roll_the_Bones",
      "name": "Roll the Bones",
      "when": [
        {
          "all": [
            "Double_Trouble.down",
            "Triple_Threat.down",
            "Jackpot.down",
            "Loaded_Dice.up",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "level 0–1 + Loaded Dice"
        },
        {
          "all": [
            "Double_Trouble.down",
            "Triple_Threat.down",
            "Jackpot.down",
            "Adrenaline_Rush.cd >= 3",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "level 0–1, Adrenaline Rush not soon"
        },
        {
          "all": [
            "Double_Trouble.down",
            "Triple_Threat.down",
            "Jackpot.down",
            "Adrenaline_Rush_Buff.up",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "level 0–1 under Adrenaline Rush"
        },
        {
          "all": ["Double_Trouble.up", "Loaded_Dice.up", "Killing_Spree_Buff.duration <= 8"],
          "comment": "level 2 + Loaded Dice"
        },
        {
          "all": [
            "Double_Trouble.up",
            "Double_Trouble.duration <= 7",
            "Adrenaline_Rush.cd >= 3",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "level 2 running out, Adrenaline Rush not soon"
        }
      ]
    },
    {
      "use": "Blade_Flurry",
      "name": "Blade Flurry: keep it up on 2+ targets, refresh about 3 s before the end",
      "when": [
        {"all": ["aoe == 1", "Blade_Flurry_Buff.down", "Killing_Spree_Buff.duration <= 8"]},
        {"all": ["aoe == 1", "Blade_Flurry_Buff.duration <= 30", "Killing_Spree_Buff.duration <= 8"]},
        {"all": ["st == 0", "enemies >= 2", "Blade_Flurry_Buff.down", "Killing_Spree_Buff.duration <= 8"]},
        {
          "all": ["st == 0", "enemies >= 2", "Blade_Flurry_Buff.duration <= 30", "Killing_Spree_Buff.duration <= 8"]
        }
      ]
    },
    {
      "use": "Preparation",
      "name": "Preparation: when Adrenaline Rush, Between the Eyes and Killing Spree are on cooldown",
      "when": [
        {
          "all": [
            "Adrenaline_Rush.oncd",
            "Adrenaline_Rush.cd >= 17",
            "Between_the_Eyes.oncd",
            "Killing_Spree.oncd",
            "Killing_Spree_Buff.duration <= 8"
          ]
        }
      ]
    },
    {
      "use": "Blade_Rush",
      "name": "Blade Rush: before finishers (if talented)",
      "when": [
        {"all": ["aoe == 1", "Killing_Spree_Buff.duration <= 8"]},
        {"all": ["st == 0", "enemies >= 2", "Killing_Spree_Buff.duration <= 8"]},
        {
          "all": ["Energy <= 80", "Killing_Spree_Buff.duration <= 8"],
          "comment": "single target: not at the energy cap"
        }
      ]
    },
    {
      "use": "Between_the_Eyes",
      "name": "Between the Eyes: always the first finisher",
      "note": ["=== Finishers: 6+ combo points ==="],
      "when": [{"all": ["Combo_Points >= 80", "Killing_Spree_Buff.duration <= 8"]}]
    },
    {
      "use": "Dispatch",
      "name": "Fang Strike: a free Dispatch at full damage, spends no combo points",
      "when": [{"all": ["Fang_Strike.up", "Between_the_Eyes.oncd", "Killing_Spree_Buff.duration <= 8"]}]
    },
    {
      "use": "Dispatch",
      "name": "Dispatch",
      "when": [{"all": ["Combo_Points >= 80", "Killing_Spree_Buff.duration <= 8"]}]
    },
    {
      "use": "Blade_Flurry",
      "name": "Blade Flurry as a builder, 3+ targets",
      "note": ["=== Builders: up to 5 combo points ==="],
      "when": [
        {"all": ["aoe == 1", "Combo_Points <= 57", "Killing_Spree_Buff.duration <= 8"]},
        {"all": ["st == 0", "enemies >= 3", "Combo_Points <= 57", "Killing_Spree_Buff.duration <= 8"]}
      ]
    },
    {
      "use": "Pistol_Shot",
      "name": "Pistol Shot with Opportunity",
      "when": [
        {
          "all": ["Opportunity.stacks >= 6", "Combo_Points < 80", "Killing_Spree_Buff.duration <= 8"],
          "comment": "maximum stacks"
        },
        {
          "all": [
            "Opportunity.up",
            "Opportunity.duration <= 17",
            "Combo_Points < 80",
            "Killing_Spree_Buff.duration <= 8"
          ],
          "comment": "the stacks run out (under 2 s)"
        },
        {
          "all": ["Opportunity.up", "Combo_Points <= 43", "Killing_Spree_Buff.duration <= 8"],
          "comment": "3 combo points or fewer: everything fits"
        }
      ]
    },
    {
      "use": "Sinister_Strike",
      "name": "Sinister Strike",
      "when": [{"all": ["Combo_Points < 80", "Killing_Spree_Buff.duration <= 8"]}]
    }
  ]
}
