{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "语法检查：所有条件和标记",
  "specID": 0,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": ["语法示例，不是实战循环：法术 ID 未设置（0）。", "其中包含所有条件类型、所有槽位标记、按编号引用和一条无条件规则。"],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Dot", "label": "目标身上的减益", "spell": 0, "note": "光环 1"},
    {"n": 2, "alias": "Proc", "label": "可叠层的增益", "spell": 0}
  ],
  "slots": [
    {"n": 1, "alias": "Manual_Button", "label": "只由你按（M）", "spell": 0, "manual": true},
    {"n": 2, "alias": "Charges_Spell", "label": "有充能的法术", "spell": 0},
    {"n": 3, "alias": "Glow_Spell", "label": "按钮会高亮的法术", "spell": 0},
    {"n": 4, "alias": "Off_Gcd", "label": "不占 GCD（O）", "spell": 0, "offGcd": true},
    {
      "n": 5,
      "alias": "Queued_Macro",
      "label": "不占 GCD，在法术队列窗口（OQ）",
      "spell": 0,
      "offGcd": true,
      "queue": true
    },
    {"n": 6, "alias": "Channel_Spell", "label": "引导（C）", "spell": 0, "channel": true},
    {"n": 7, "alias": "Burst_Spell", "label": "由 Burst 按钮控制的冷却技能", "spell": 0},
    {"n": 8, "alias": "Ground_Spell", "label": "地面目标法术（宏 @player）", "spell": 0},
    {"n": 9, "alias": "Defensive", "label": "防御技能", "spell": 0, "show": "combat"},
    {"n": 10, "alias": "Filler", "label": "填充技能", "spell": 0}
  ],
  "rules": [
    {"use": "Manual_Button", "name": "1：无条件，M 槽位（跳过）"},
    {"use": "Defensive", "name": "2：生命值和防御开关", "when": [{"all": ["defensives == 1", "PlayerHP <= 35"]}]},
    {
      "use": "Charges_Spell",
      "name": "3：充能",
      "when": [
        {"all": ["Charges_Spell.charges >= 2"], "comment": "两层充能"},
        {"all": ["Charges_Spell.charges == 1", "Charges_Spell.cd <= 20"], "comment": "第二层快好了"}
      ]
    },
    {"use": "Glow_Spell", "name": "4：高亮和距离", "when": [{"all": ["Glow_Spell.glow", "target.distance <= 8"]}]},
    {"use": "Off_Gcd", "name": "5：层数", "when": [{"all": ["Proc.up", "Proc.stacks >= 3"]}]},
    {"use": "Queued_Macro", "name": "6：光环不存在和敌人数量", "when": [{"all": ["Proc.down", "enemies >= 2"]}]},
    {
      "use": "Channel_Spell",
      "name": "7：不高亮、就绪、移动",
      "when": [{"all": ["Glow_Spell.noglow", "Channel_Spell.ready", "movement == 0"]}]
    },
    {
      "use": "slot7",
      "name": "8：“自动”模式下的 Burst，或 3+ 个目标时的“单体”模式",
      "when": [
        {"all": ["cd == 1", "aoe == 0", "st == 0", "Combo_Points >= 50", "Off_Gcd.oncd"]},
        {"all": ["st == 1", "enemies >= 3", "resource3 >= 40"]}
      ]
    },
    {
      "use": "Ground_Spell",
      "name": "9：“地面法术”开关和“群体”模式",
      "when": [{"all": ["ground_spells == 1", "aoe == 1"]}]
    },
    {
      "use": "Filler",
      "name": "10：按编号刷新 DoT，目标生命值",
      "when": [
        {"all": ["buff1.down", "TargetHP >= 50"]},
        {"all": ["Dot.up and Dot.duration <= 30"], "comment": "一个字符串里写两个条件"},
        {"all": ["Combo_Points<65", "Energy>=30"], "comment": "运算符两边的空格可写可不写"}
      ]
    }
  ],
  "footer": ["语法示例结束。"]
}
