{
  "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 個連擊點數"}]
    }
  ]
}
