{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "Assassination: example v1",
  "specID": 259,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": [
    "Example from the KeyRota documentation: two bleeds, a builder, a spender with energy pooling,",
    "a defensive at low health and Deathmark on the Burst button.",
    "Combo points in percent of 7: 5 points = 71%, threshold 70 = 5+."
  ],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Garrote_DoT", "label": "Garrote on target [703]", "spell": 703},
    {"n": 2, "alias": "Rupture_DoT", "label": "Rupture on target [1943]", "spell": 1943},
    {"n": 3, "alias": "Envenom_Buff", "label": "Envenom [32645]", "spell": 32645},
    {"n": 4, "alias": "Deathmark_DoT", "label": "Deathmark on target [360194]", "spell": 360194}
  ],
  "slots": [
    {"n": 1, "alias": "Garrote", "label": "Garrote", "spell": 703, "show": "target"},
    {"n": 2, "alias": "Rupture", "label": "Rupture", "spell": 1943, "show": "target"},
    {"n": 3, "alias": "Envenom", "label": "Envenom", "spell": 32645, "show": "target"},
    {"n": 4, "alias": "Mutilate", "label": "Mutilate", "spell": 1329, "show": "target"},
    {"n": 5, "alias": "Deathmark", "label": "Deathmark", "spell": 360194, "show": "target"},
    {"n": 6, "alias": "Crimson_Vial", "label": "Crimson Vial", "spell": 185311, "show": "combat"}
  ],
  "rules": [
    {
      "use": "Crimson_Vial",
      "name": "Crimson Vial",
      "note": ["--- Defensive: only with Healing / defense on ---"],
      "when": [{"all": ["defensives == 1", "PlayerHP <= 40"], "comment": "health 40% or lower"}]
    },
    {
      "use": "Deathmark",
      "name": "Deathmark",
      "note": ["--- Cooldown: only with Burst on ---"],
      "when": [
        {
          "all": ["cd == 1", "Garrote_DoT.up", "Rupture_DoT.up", "Envenom_Buff.up"],
          "comment": "Burst on, bleeds and Envenom up"
        }
      ]
    },
    {
      "use": "Garrote",
      "name": "Garrote",
      "note": ["--- Bleeds ---"],
      "when": [
        {"all": ["Garrote_DoT.down"], "comment": "no bleed"},
        {
          "all": ["Garrote_DoT.up", "Garrote_DoT.duration <= 30"],
          "comment": "pandemic window: 30% or less left"
        }
      ]
    },
    {
      "use": "Rupture",
      "name": "Rupture",
      "when": [
        {"all": ["Combo_Points >= 70", "Rupture_DoT.down"], "comment": "5+ combo points, no bleed"},
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.up", "Rupture_DoT.duration <= 30"],
          "comment": "5+ combo points, pandemic window"
        }
      ]
    },
    {
      "use": "Envenom",
      "name": "Envenom",
      "note": ["--- Spender: 5+ combo points, pooling energy ---"],
      "when": [
        {"all": ["Combo_Points >= 70", "Envenom_Buff.down"], "comment": "no buff"},
        {
          "all": ["Combo_Points >= 70", "Envenom_Buff.up", "Envenom_Buff.duration <= 20"],
          "comment": "buff running out"
        },
        {"all": ["Combo_Points >= 70", "Energy >= 70"], "comment": "don't cap energy"},
        {"all": ["Combo_Points >= 70", "Deathmark_DoT.up"], "comment": "Deathmark on the target"}
      ]
    },
    {
      "use": "Mutilate",
      "name": "Mutilate",
      "note": ["--- Builder: below 5 combo points ---"],
      "when": [{"all": ["Combo_Points < 70"], "comment": "below 5 combo points"}]
    }
  ]
}
