{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "奇袭：示例 v1",
  "specID": 259,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": [
    "KeyRota 文档中的示例：两个流血、一个生成技能、一个攒能量的消耗技能，",
    "低生命值时的防御，以及由 Burst 按钮控制的死亡印记。",
    "连击点按 7 点的百分比计：5 点 = 71%，阈值 70 = 5 点以上。"
  ],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Garrote_DoT", "label": "目标身上的锁喉 [703]", "spell": 703},
    {"n": 2, "alias": "Rupture_DoT", "label": "目标身上的割裂 [1943]", "spell": 1943},
    {"n": 3, "alias": "Envenom_Buff", "label": "毒伤 [32645]", "spell": 32645},
    {"n": 4, "alias": "Deathmark_DoT", "label": "目标身上的死亡印记 [360194]", "spell": 360194}
  ],
  "slots": [
    {"n": 1, "alias": "Garrote", "label": "锁喉", "spell": 703, "show": "target"},
    {"n": 2, "alias": "Rupture", "label": "割裂", "spell": 1943, "show": "target"},
    {"n": 3, "alias": "Envenom", "label": "毒伤", "spell": 32645, "show": "target"},
    {"n": 4, "alias": "Mutilate", "label": "毁伤", "spell": 1329, "show": "target"},
    {"n": 5, "alias": "Deathmark", "label": "死亡印记", "spell": 360194, "show": "target"},
    {"n": 6, "alias": "Crimson_Vial", "label": "猩红之瓶", "spell": 185311, "show": "combat"}
  ],
  "rules": [
    {
      "use": "Crimson_Vial",
      "name": "猩红之瓶",
      "note": ["--- 防御：仅在“治疗 / 防御”开启时 ---"],
      "when": [{"all": ["defensives == 1", "PlayerHP <= 40"], "comment": "生命值 40% 及以下"}]
    },
    {
      "use": "Deathmark",
      "name": "死亡印记",
      "note": ["--- 冷却技能：仅在 Burst 开启时 ---"],
      "when": [
        {
          "all": ["cd == 1", "Garrote_DoT.up", "Rupture_DoT.up", "Envenom_Buff.up"],
          "comment": "Burst 开启，流血和毒伤都在"
        }
      ]
    },
    {
      "use": "Garrote",
      "name": "锁喉",
      "note": ["--- 流血 ---"],
      "when": [
        {"all": ["Garrote_DoT.down"], "comment": "没有流血"},
        {"all": ["Garrote_DoT.up", "Garrote_DoT.duration <= 30"], "comment": "刷新窗口：剩余 30% 及以下"}
      ]
    },
    {
      "use": "Rupture",
      "name": "割裂",
      "when": [
        {"all": ["Combo_Points >= 70", "Rupture_DoT.down"], "comment": "5+ 个连击点，没有流血"},
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.up", "Rupture_DoT.duration <= 30"],
          "comment": "5+ 个连击点，刷新窗口"
        }
      ]
    },
    {
      "use": "Envenom",
      "name": "毒伤",
      "note": ["--- 消耗：5+ 个连击点，攒能量 ---"],
      "when": [
        {"all": ["Combo_Points >= 70", "Envenom_Buff.down"], "comment": "没有增益"},
        {"all": ["Combo_Points >= 70", "Envenom_Buff.up", "Envenom_Buff.duration <= 20"], "comment": "增益快结束"},
        {"all": ["Combo_Points >= 70", "Energy >= 70"], "comment": "避免能量溢出"},
        {"all": ["Combo_Points >= 70", "Deathmark_DoT.up"], "comment": "目标身上有死亡印记"}
      ]
    },
    {
      "use": "Mutilate",
      "name": "毁伤",
      "note": ["--- 生成技能：少于 5 个连击点 ---"],
      "when": [{"all": ["Combo_Points < 70"], "comment": "少于 5 个连击点"}]
    }
  ]
}
