{
  "str_version": "1.0",
  "type": "unit",
  "name": "Lich",
  "role": "Deathless Sorcerer",
  "description": "The lich traded death for study and considers the bargain a fair one. It has read every book on the subject, written half of them, and will not die while the vessel that holds its soul survives.",
  "skill": 2,
  "defence": 3,
  "armor": false,
  "equipment": [
    {
      "type": "ranged",
      "name": "Staff of Bones",
      "attacks": 2,
      "range": 12,
      "attributes": [
        {
          "id": "piercing",
          "value": 2
        }
      ],
      "limitations": []
    },
    {
      "type": "melee",
      "name": "Withering Touch",
      "attacks": 2,
      "range": 0,
      "attributes": [
        {
          "id": "ignore_armor"
        }
      ],
      "limitations": []
    }
  ],
  "attributes": [
    {
      "id": "fear"
    },
    {
      "id": "absorb",
      "value": 3
    },
    {
      "id": "tough",
      "value": 2
    },
    {
      "id": "speed",
      "value": -1
    }
  ],
  "upgrades": [
    {
      "name": "Soul Drain",
      "effects": [
        {
          "id": "status_return_oa_unit"
        }
      ],
      "condition": {
        "id": "condition_trigger_enemy_out_of_action"
      }
    },
    {
      "name": "Bone Guard",
      "effects": [
        {
          "id": "create_new_unit",
          "x": 2,
          "spawnedUnit": {
            "name": "Skeleton",
            "role": "Bone Soldier",
            "skill": 5,
            "defence": 5,
            "armor": false,
            "equipment": [
              {
                "type": "melee",
                "name": "Rusted Blade",
                "attacks": 2,
                "range": 0,
                "attributes": [],
                "limitations": []
              }
            ],
            "attributes": [
              {
                "id": "fearless"
              },
              {
                "id": "resistant",
                "value": "Ranged"
              }
            ]
          }
        }
      ],
      "condition": {
        "id": "condition_limitation_once"
      }
    }
  ],
  "loot": [
    {
      "roll": 1,
      "text": "A staff that hums with stolen years."
    },
    {
      "roll": 2,
      "text": "The library: forbidden, priceless, and probably cursed."
    },
    {
      "roll": 3,
      "text": "A crown of iron thorns."
    },
    {
      "roll": 4,
      "text": "Phylactery — no, a decoy phylactery."
    },
    {
      "roll": 5,
      "text": "Dust, and the certainty it will be back."
    },
    {
      "roll": 6,
      "text": "The true phylactery, hidden where you least expected: on the body."
    }
  ],
  "meta": {
    "setting": "fantasy",
    "category": "undead",
    "threat": "legendary",
    "tags": [
      "sorcerer",
      "phylactery",
      "ancient"
    ]
  }
}
