{
  "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": "충전 2회 모두"},
        {"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": ["문법 예시 끝."]
}
