{
  "format": "encounterra.homebrew",
  "schemaVersion": "0.1",
  "package": {
    "id": "43fe1958-9e54-4b2b-a618-65b82c40fa57",
    "name": "Hushbell Colossus — Walking Sanctuary",
    "version": "0.1.0"
  },
  "requires": {
    "ruleset": "dnd-2024",
    "srdCatalog": "5.2.1-encounterra.1"
  },
  "definitions": [
    {
      "kind": "monster",
      "id": "hushbell-colossus",
      "name": "Hushbell Colossus",
      "stats": {
        "challengeRating": "12",
        "hitPoints": 187,
        "armorClass": 18,
        "speedFeet": 25,
        "size": "huge",
        "creatureType": "construct",
        "darkvisionFeet": 120,
        "difficultyClass": 17,
        "legendaryActionUses": 2,
        "legendaryResistanceUses": 2,
        "abilityScores": {
          "strength": 22,
          "dexterity": 9,
          "constitution": 20,
          "intelligence": 8,
          "wisdom": 15,
          "charisma": 12
        },
        "savingThrows": {
          "strength": 6,
          "dexterity": -1,
          "constitution": 9,
          "intelligence": -1,
          "wisdom": 6,
          "charisma": 1
        },
        "immunities": [
          "poison"
        ],
        "conditionImmunities": [
          "poisoned",
          "charmed",
          "frightened"
        ]
      },
      "resources": [
        {
          "id": "unmaking",
          "name": "Unmaking Chime",
          "maximum": 1,
          "refresh": "longRest"
        },
        {
          "id": "final-toll",
          "name": "Final Toll",
          "maximum": 2,
          "refresh": "longRest"
        }
      ],
      "rules": [{
        "id": "recharge-unmaking", "event": "turn.start",
        "do": [{ "op": "restoreResource", "resource": "unmaking",
          "amount": { "kind": "max", "operands": [0, {
            "kind": "subtract", "operands": [{ "kind": "dice", "dice": { "count": 1, "sides": 6 } }, 4]
          }] }
        }]
      }],
      "choices": [
        {
          "id": "hushfield-shape",
          "name": "Hushfield shape",
          "options": [
            {
              "id": "radius",
              "grants": [
                "#hushfield-radius"
              ]
            },
            {
              "id": "cone",
              "grants": [
                "#hushfield-cone"
              ]
            }
          ],
          "default": "radius"
        }
      ],
      "actions": [
        "#double-piston",
        "#unmaking-chime",
        "#final-toll",
        "#afterbeat"
      ]
    },
    {
      "kind": "action",
      "id": "piston-hammer",
      "name": "Piston Hammer",
      "target": {
        "side": "enemy",
        "rangeFeet": 10
      },
      "resolution": {
        "kind": "attack",
        "attackType": "melee",
        "attackBonus": 10,
        "onHit": {
          "op": "damage",
          "amount": {
            "dice": {
              "count": 2,
              "sides": 10
            },
            "bonus": 6
          },
          "damageType": "bludgeoning"
        }
      }
    },
    {
      "kind": "action",
      "id": "double-piston",
      "name": "Double Piston",
      "target": {
        "side": "enemy",
        "rangeFeet": 10
      },
      "resolution": {
        "kind": "sequence",
        "repeat": 2,
        "steps": [
          {
            "kind": "reference",
            "ref": "#piston-hammer"
          }
        ]
      },
      "activation": {
        "economy": "action",
        "countsAs": "multiattack"
      }
    },
    {
      "kind": "action",
      "id": "afterbeat",
      "name": "Afterbeat",
      "target": {
        "side": "enemy",
        "rangeFeet": 10
      },
      "resolution": {
        "kind": "reference",
        "ref": "#piston-hammer"
      },
      "activation": "legendaryAction",
      "legendaryCost": 1
    },
    {
      "kind": "action",
      "id": "unmaking-chime",
      "name": "Unmaking Chime",
      "target": {
        "side": "enemy",
        "rangeFeet": 90,
        "requiresSight": true
      },
      "resolution": {
        "kind": "savingThrow",
        "ability": "dexterity",
        "dc": 17,
        "onFailure": {
          "op": "damage",
          "amount": {
            "dice": {
              "count": 7,
              "sides": 8
            }
          },
          "damageType": "force",
          "onZeroHitPoints": "disintegrate"
        }
      },
      "magical": true,
      "resource": {
        "ref": "unmaking",
        "cost": 1
      }
    },
    {
      "kind": "action",
      "id": "final-toll",
      "name": "Final Toll",
      "target": {
        "side": "enemy",
        "rangeFeet": 60,
        "requiresSight": true
      },
      "resolution": {
        "kind": "savingThrow",
        "ability": "constitution",
        "dc": 17,
        "onFailure": {
          "op": "damage",
          "amount": {
            "dice": {
              "count": 6,
              "sides": 10
            }
          },
          "damageType": "necrotic",
          "onZeroHitPoints": "kill"
        }
      },
      "magical": true,
      "resource": {
        "ref": "final-toll",
        "cost": 1
      }
    },
    {
      "kind": "action",
      "id": "hushfield-radius",
      "name": "Hushfield (radius)",
      "target": {
        "side": "enemy",
        "rangeFeet": 90
      },
      "resolution": {
        "op": "antimagicArea",
        "target": "owner",
        "area": {
          "shape": "radius",
          "sizeFeet": 30
        },
        "duration": "startOfSourceNextTurn"
      },
      "activation": "bonusAction"
    },
    {
      "kind": "action",
      "id": "hushfield-cone",
      "name": "Hushfield (cone)",
      "target": {
        "side": "enemy",
        "rangeFeet": 90
      },
      "resolution": {
        "op": "antimagicArea",
        "target": "owner",
        "area": {
          "shape": "cone",
          "sizeFeet": 30
        },
        "duration": "startOfSourceNextTurn"
      },
      "activation": "bonusAction"
    }
  ]
}
