{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "Assassinato, raide v2.8: botão Burst, Method 12.1, SimulationCraft, melhores logs",
  "specID": 259,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": [
    "Assassinato, raide. Base: o guia da Method (patch 12.1), a lista de ações do SimulationCraft e os melhores jogadores do Warcraft Logs.",
    "Ignorar o ícone principal: ligado. Marca da Morte e Ruína dos Reis só com o Burst ligado; Sumir só enquanto Marca da Morte estiver no alvo.",
    "Pontos de combo em porcentagem de 7: 3 = 43%, 4 = 57%, 5 = 71%, 6 = 86%, 7 = 100%.",
    "",
    "v2.4: Ruína dos Reis só com 0–3 pontos de combo (Golpes Implacáveis depois dão 5), Sumir com 0–4 (Garrote da furtividade dá 3).",
    "v2.5: Tempestade Carmesim só quando apenas um dos dois sangramentos está recente; antes era usada várias vezes seguidas.",
    "v2.6: com o Burst ligado e Marca da Morte pronta ou já no alvo, Garrote e Ruptura vão para um alvo com qualquer vida.",
    "v2.7 e v2.8: alvo novo sem sangramentos, Burst ligado, Marca da Morte pronta, 2+ inimigos por perto: primeiro Tempestade Carmesim copia os sangramentos (com quaisquer pontos de combo), depois Marca da Morte."
  ],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Garrote_DoT", "label": "Garrote no alvo [703]", "spell": 703},
    {"n": 2, "alias": "Rupture_DoT", "label": "Ruptura no alvo [1943]", "spell": 1943},
    {"n": 3, "alias": "Envenom_Buff", "label": "Envenenar [32645]", "spell": 32645},
    {"n": 4, "alias": "Deathmark_DoT", "label": "Marca da Morte no alvo [360194]", "spell": 360194},
    {"n": 5, "alias": "Improved_Garrote", "label": "Garrote Aprimorado [392401]", "spell": 392401},
    {"n": 6, "alias": "Darkest_Night", "label": "Noite Preta [457280]", "spell": 457280},
    {"n": 7, "alias": "Blindside", "label": "Ponto Cego [121153]", "spell": 121153},
    {"n": 8, "alias": "Stealth_Buff", "label": "Furtividade [1784]", "spell": 1784},
    {"n": 9, "alias": "Stealth_Sub", "label": "Furtividade (Subterfúgio) [115191]", "spell": 115191},
    {"n": 10, "alias": "Vanish_Buff", "label": "Sumir [11327]", "spell": 11327}
  ],
  "slots": [
    {
      "n": 1,
      "alias": "Garrote",
      "label": "Garrote",
      "spell": 703,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 2,
      "alias": "Rupture",
      "label": "Ruptura",
      "spell": 1943,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 3,
      "alias": "Envenom",
      "label": "Envenenar",
      "spell": 32645,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 4,
      "alias": "Mutilate",
      "label": "Mutilar",
      "spell": 1329,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 5,
      "alias": "Ambush",
      "label": "Emboscar",
      "spell": 8676,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 6,
      "alias": "Fan_of_Knives",
      "label": "Leque de Facas",
      "spell": 51723,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 7,
      "alias": "Crimson_Tempest",
      "label": "Tempestade Carmesim",
      "spell": 1247227,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 8,
      "alias": "Deathmark",
      "label": "Marca da Morte",
      "spell": 360194,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 9,
      "alias": "Kingsbane",
      "label": "Ruína dos Reis",
      "spell": 385627,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    },
    {
      "n": 10,
      "alias": "Vanish",
      "label": "Sumir",
      "spell": 1856,
      "show": "target",
      "manual": false,
      "channel": false,
      "offGcd": true,
      "queue": true
    },
    {
      "n": 11,
      "alias": "Crimson_Vial",
      "label": "Frasco Rubro",
      "spell": 185311,
      "show": "combat",
      "manual": false,
      "channel": false,
      "offGcd": false,
      "queue": false
    }
  ],
  "rules": [
    {
      "use": "Crimson_Vial",
      "name": "Frasco Rubro",
      "note": ["--- Defesa: só com “Cura / defesa” ligado ---"],
      "when": [{"all": ["defensives == 1", "PlayerHP <= 40"], "comment": "vida em 40% ou menos"}]
    },
    {
      "use": "Garrote",
      "name": "Garrote da furtividade",
      "note": ["=== Furtividade ==="],
      "when": [
        {"all": ["Stealth_Buff.up"], "comment": "em furtividade"},
        {"all": ["Stealth_Sub.up"], "comment": "em furtividade (Subterfúgio)"},
        {"all": ["Vanish_Buff.up"], "comment": "logo após Sumir"}
      ]
    },
    {
      "use": "Garrote",
      "name": "Garrote: janela de Garrote Aprimorado",
      "when": [
        {"all": ["Improved_Garrote.up", "Garrote_DoT.down"], "comment": "janela aberta, sem Garrote no alvo"},
        {
          "all": ["Improved_Garrote.up", "Garrote_DoT.duration <= 78"],
          "comment": "SimulationCraft: renovar quando restam 14 de 18 segundos"
        }
      ]
    },
    {
      "use": "Deathmark",
      "name": "Marca da Morte",
      "note": ["=== Recargas (botão Burst) ==="],
      "when": [
        {
          "all": [
            "cd == 1",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Kingsbane.cd <= 3",
            "Envenom_Buff.duration >= 35",
            "Stealth_Buff.down",
            "Stealth_Sub.down"
          ],
          "comment": "Burst ligado, sangramentos ativos, Ruína dos Reis pronta, Envenenar por mais 2+ s"
        }
      ]
    },
    {
      "use": "Kingsbane",
      "name": "Ruína dos Reis",
      "when": [
        {
          "all": [
            "cd == 1",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Envenom_Buff.up",
            "Deathmark_DoT.up",
            "Combo_Points < 50",
            "Stealth_Buff.down",
            "Stealth_Sub.down"
          ],
          "comment": "Burst ligado, Marca da Morte no alvo, 0–3 pontos de combo"
        },
        {
          "all": [
            "cd == 1",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Envenom_Buff.up",
            "Deathmark.cd >= 44",
            "Combo_Points < 50",
            "Stealth_Buff.down",
            "Stealth_Sub.down"
          ],
          "comment": "Burst ligado, Marca da Morte só daqui a mais de 52 s, 0–3 pontos de combo"
        }
      ]
    },
    {
      "use": "Vanish",
      "name": "Sumir",
      "when": [
        {
          "all": [
            "Deathmark_DoT.up",
            "Improved_Garrote.down",
            "Combo_Points < 65",
            "Stealth_Buff.down",
            "Stealth_Sub.down"
          ],
          "comment": "Marca da Morte no alvo, 0–4 pontos de combo (Garrote da furtividade dá 3)"
        }
      ]
    },
    {
      "use": "Crimson_Tempest",
      "name": "Tempestade Carmesim: copiar os sangramentos para um alvo novo para Marca da Morte",
      "note": ["=== Sangramentos ==="],
      "when": [
        {
          "all": [
            "cd == 1",
            "Deathmark.cd <= 3",
            "Garrote_DoT.down",
            "Rupture_DoT.down",
            "Envenom_Buff.up",
            "enemies >= 2"
          ],
          "comment": "pontos de combo não importam"
        }
      ]
    },
    {
      "use": "Garrote",
      "name": "Garrote: manutenção",
      "note": [
        "Nenhum sangramento novo em adds quase mortos (como “o alvo vive mais 12+ s” do SimulationCraft): com 1–2 alvos e no modo “Um”, sempre;",
        "com 3+ alvos, só se o alvo tiver 50%+ de vida, ou com o Burst ligado e Marca da Morte pronta, ou se Marca da Morte já estiver no alvo."
      ],
      "when": [
        {"all": ["Garrote_DoT.down", "Combo_Points < 95", "enemies <= 2"]},
        {"all": ["Garrote_DoT.down", "Combo_Points < 95", "st == 1"]},
        {
          "all": ["Garrote_DoT.down", "Combo_Points < 95", "TargetHP >= 50"],
          "comment": "3+ alvos: só um alvo que vai durar"
        },
        {
          "all": ["Garrote_DoT.down", "Combo_Points < 95", "cd == 1", "Deathmark.cd <= 3"],
          "comment": "Burst ligado e Marca da Morte pronta: a vida não importa"
        },
        {
          "all": ["Garrote_DoT.down", "Combo_Points < 95", "Deathmark_DoT.up"],
          "comment": "Marca da Morte no alvo (sangramentos copiados)"
        },
        {
          "all": ["Garrote_DoT.up", "Garrote_DoT.duration <= 30", "Combo_Points < 95"],
          "comment": "janela de pandemia (já ativo)"
        }
      ]
    },
    {
      "use": "Rupture",
      "name": "Ruptura",
      "when": [
        {"all": ["Combo_Points >= 70", "Rupture_DoT.down", "enemies <= 2"]},
        {"all": ["Combo_Points >= 70", "Rupture_DoT.down", "st == 1"]},
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.down", "TargetHP >= 50"],
          "comment": "3+ alvos: só um alvo que vai durar"
        },
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.down", "cd == 1", "Deathmark.cd <= 3"],
          "comment": "Burst ligado e Marca da Morte pronta"
        },
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.down", "Deathmark_DoT.up"],
          "comment": "Marca da Morte no alvo"
        },
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.up", "Rupture_DoT.duration <= 25", "Darkest_Night.down"],
          "comment": "renovação; não gastar nela os 7 pontos de combo de Noite Preta"
        }
      ]
    },
    {
      "use": "Crimson_Tempest",
      "name": "Tempestade Carmesim: espalhar os sangramentos logo após uma Ruptura ou um Garrote recente",
      "note": [
        "=== Geradores: até 5 pontos de combo, até 7 com Noite Preta ===",
        "",
        "Tempestade Carmesim uma vez logo após uma Ruptura recente (com 4+ alvos também após um Garrote recente); senão, Leque de Facas.",
        "Só um dos dois pode estar recente (94%+): logo após Tempestade Carmesim os dois estão, então a próxima espera."
      ],
      "when": [
        {
          "all": [
            "aoe == 1",
            "Darkest_Night.down",
            "Combo_Points < 70",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "aoe == 1",
            "Darkest_Night.down",
            "Combo_Points < 70",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Garrote_DoT.duration >= 94",
            "Rupture_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "aoe == 1",
            "Darkest_Night.up",
            "Combo_Points < 95",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "aoe == 1",
            "Darkest_Night.up",
            "Combo_Points < 95",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Garrote_DoT.duration >= 94",
            "Rupture_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "st == 0",
            "enemies >= 4",
            "Darkest_Night.down",
            "Combo_Points < 70",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "st == 0",
            "enemies >= 4",
            "Darkest_Night.down",
            "Combo_Points < 70",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Garrote_DoT.duration >= 94",
            "Rupture_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "st == 0",
            "enemies >= 4",
            "Darkest_Night.up",
            "Combo_Points < 95",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "st == 0",
            "enemies >= 4",
            "Darkest_Night.up",
            "Combo_Points < 95",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Garrote_DoT.duration >= 94",
            "Rupture_DoT.duration < 94"
          ]
        },
        {
          "all": [
            "st == 0",
            "enemies >= 2",
            "enemies <= 3",
            "Darkest_Night.down",
            "Combo_Points < 70",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ],
          "comment": "2–3 alvos: só após uma Ruptura recente"
        },
        {
          "all": [
            "st == 0",
            "enemies >= 2",
            "enemies <= 3",
            "Darkest_Night.up",
            "Combo_Points < 95",
            "Garrote_DoT.up",
            "Rupture_DoT.up",
            "Rupture_DoT.duration >= 94",
            "Garrote_DoT.duration < 94"
          ],
          "comment": "2–3 alvos: só após uma Ruptura recente"
        }
      ]
    },
    {
      "use": "Fan_of_Knives",
      "name": "Leque de Facas: alvo único, Noite Preta, falta um ponto de combo",
      "when": [
        {"all": ["st == 1", "Darkest_Night.up", "Combo_Points >= 80", "Combo_Points < 95"]},
        {"all": ["aoe == 0", "enemies <= 1", "Darkest_Night.up", "Combo_Points >= 80", "Combo_Points < 95"]}
      ]
    },
    {
      "use": "Fan_of_Knives",
      "name": "Leque de Facas: 2+ alvos",
      "when": [
        {"all": ["aoe == 1", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["aoe == 1", "Darkest_Night.up", "Combo_Points < 95"]},
        {"all": ["st == 0", "enemies >= 2", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["st == 0", "enemies >= 2", "Darkest_Night.up", "Combo_Points < 95"]}
      ]
    },
    {
      "use": "Ambush",
      "name": "Emboscar (Ponto Cego)",
      "when": [
        {"all": ["Blindside.up", "st == 1", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["Blindside.up", "st == 1", "Darkest_Night.up", "Combo_Points < 95"]},
        {"all": ["Blindside.up", "aoe == 0", "enemies <= 1", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["Blindside.up", "aoe == 0", "enemies <= 1", "Darkest_Night.up", "Combo_Points < 95"]}
      ]
    },
    {
      "use": "Mutilate",
      "name": "Mutilar",
      "when": [
        {"all": ["st == 1", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["st == 1", "Darkest_Night.up", "Combo_Points < 95"]},
        {"all": ["aoe == 0", "enemies <= 1", "Darkest_Night.down", "Combo_Points < 70"]},
        {"all": ["aoe == 0", "enemies <= 1", "Darkest_Night.up", "Combo_Points < 95"]}
      ]
    },
    {
      "use": "Envenom",
      "name": "Envenenar",
      "note": [
        "=== Gasto: 5+ pontos de combo (7 com Noite Preta) ===",
        "SimulationCraft: não usar de imediato, e sim manter Envenenar ativo: no último segundo do bônus, enquanto Marca da Morte estiver no alvo, antes de a energia encher, mais cedo com 4+ alvos."
      ],
      "when": [
        {"all": ["Darkest_Night.down", "Combo_Points >= 70", "Envenom_Buff.down"]},
        {
          "all": ["Darkest_Night.down", "Combo_Points >= 70", "Envenom_Buff.duration <= 20"],
          "comment": "resta ~1 s"
        },
        {"all": ["Darkest_Night.down", "Combo_Points >= 70", "Deathmark_DoT.up"]},
        {
          "all": ["Darkest_Night.down", "Combo_Points >= 70", "Energy >= 70"],
          "comment": "não desperdiçar energia no máximo"
        },
        {"all": ["Darkest_Night.down", "Combo_Points >= 70", "Energy >= 30", "enemies >= 4"]},
        {"all": ["Darkest_Night.up", "Combo_Points >= 95", "Envenom_Buff.down"]},
        {"all": ["Darkest_Night.up", "Combo_Points >= 95", "Envenom_Buff.duration <= 20"]},
        {"all": ["Darkest_Night.up", "Combo_Points >= 95", "Deathmark_DoT.up"]},
        {"all": ["Darkest_Night.up", "Combo_Points >= 95", "Energy >= 70"]},
        {"all": ["Darkest_Night.up", "Combo_Points >= 95", "Energy >= 30", "enemies >= 4"]}
      ]
    }
  ]
}
