{
  "format": "keyrota-rotation",
  "version": 1,
  "title": "Assassinio: esempio v1",
  "specID": 259,
  "ignoreMainIcon": true,
  "enemies": {"range": 8, "combatOnly": true},
  "notes": [
    "Esempio dalla documentazione di KeyRota: due sanguinamenti, un generatore, un consumo con accumulo di energia,",
    "una difesa con poca salute e Stigma Letale sul tasto Burst.",
    "Punti combo in percentuale di 7: 5 punti = 71%, soglia 70 = 5+."
  ],
  "resources": ["PlayerHP", "TargetHP", "Energy", "Combo_Points"],
  "auras": [
    {"n": 1, "alias": "Garrote_DoT", "label": "Garrota sul bersaglio [703]", "spell": 703},
    {"n": 2, "alias": "Rupture_DoT", "label": "Perforazione sul bersaglio [1943]", "spell": 1943},
    {"n": 3, "alias": "Envenom_Buff", "label": "Affondo Venefico [32645]", "spell": 32645},
    {"n": 4, "alias": "Deathmark_DoT", "label": "Stigma Letale sul bersaglio [360194]", "spell": 360194}
  ],
  "slots": [
    {"n": 1, "alias": "Garrote", "label": "Garrota", "spell": 703, "show": "target"},
    {"n": 2, "alias": "Rupture", "label": "Perforazione", "spell": 1943, "show": "target"},
    {"n": 3, "alias": "Envenom", "label": "Affondo Venefico", "spell": 32645, "show": "target"},
    {"n": 4, "alias": "Mutilate", "label": "Mutilazione", "spell": 1329, "show": "target"},
    {"n": 5, "alias": "Deathmark", "label": "Stigma Letale", "spell": 360194, "show": "target"},
    {"n": 6, "alias": "Crimson_Vial", "label": "Fiala Cremisi", "spell": 185311, "show": "combat"}
  ],
  "rules": [
    {
      "use": "Crimson_Vial",
      "name": "Fiala Cremisi",
      "note": ["--- Difesa: solo con «Cure / difesa» attivo ---"],
      "when": [{"all": ["defensives == 1", "PlayerHP <= 40"], "comment": "salute al 40% o meno"}]
    },
    {
      "use": "Deathmark",
      "name": "Stigma Letale",
      "note": ["--- Tempo di recupero: solo con Burst attivo ---"],
      "when": [
        {
          "all": ["cd == 1", "Garrote_DoT.up", "Rupture_DoT.up", "Envenom_Buff.up"],
          "comment": "Burst attivo, sanguinamenti e Affondo Venefico attivi"
        }
      ]
    },
    {
      "use": "Garrote",
      "name": "Garrota",
      "note": ["--- Sanguinamenti ---"],
      "when": [
        {"all": ["Garrote_DoT.down"], "comment": "nessun sanguinamento"},
        {
          "all": ["Garrote_DoT.up", "Garrote_DoT.duration <= 30"],
          "comment": "finestra di pandemia: resta il 30% o meno"
        }
      ]
    },
    {
      "use": "Rupture",
      "name": "Perforazione",
      "when": [
        {"all": ["Combo_Points >= 70", "Rupture_DoT.down"], "comment": "5+ punti combo, nessun sanguinamento"},
        {
          "all": ["Combo_Points >= 70", "Rupture_DoT.up", "Rupture_DoT.duration <= 30"],
          "comment": "5+ punti combo, finestra di pandemia"
        }
      ]
    },
    {
      "use": "Envenom",
      "name": "Affondo Venefico",
      "note": ["--- Consumo: 5+ punti combo, accumulando energia ---"],
      "when": [
        {"all": ["Combo_Points >= 70", "Envenom_Buff.down"], "comment": "nessun beneficio"},
        {
          "all": ["Combo_Points >= 70", "Envenom_Buff.up", "Envenom_Buff.duration <= 20"],
          "comment": "il beneficio sta finendo"
        },
        {"all": ["Combo_Points >= 70", "Energy >= 70"], "comment": "non sprecare energia al massimo"},
        {"all": ["Combo_Points >= 70", "Deathmark_DoT.up"], "comment": "Stigma Letale sul bersaglio"}
      ]
    },
    {
      "use": "Mutilate",
      "name": "Mutilazione",
      "note": ["--- Generatore: meno di 5 punti combo ---"],
      "when": [{"all": ["Combo_Points < 70"], "comment": "meno di 5 punti combo"}]
    }
  ]
}
