{
  "format": "encounterra.homebrew",
  "schemaVersion": "0.1",
  "package": { "id": "eaf098a5-089d-40bc-9dbf-bb1a7a4f8d97", "name": "Dawnward Sentinel — Protector of the Last Light", "version": "0.1.2" },
  "requires": { "ruleset": "dnd-2024", "srdCatalog": "5.2.1-encounterra.1" },
  "definitions": [
    {
      "kind": "hero", "id": "dawnward-sentinel", "name": "Dawnward Sentinel",
      "equipment": { "armor": "heavy", "shield": true },
      "stats": {
        "level": 8, "hitPoints": 80, "armorClass": 18, "speedFeet": 30, "size": "medium", "creatureType": "humanoid",
        "abilityScores": { "strength": 20, "dexterity": 10, "constitution": 16, "intelligence": 10, "wisdom": 14, "charisma": 14 },
        "savingThrows": { "strength": 8, "dexterity": 0, "constitution": 6, "intelligence": 0, "wisdom": 2, "charisma": 2 },
        "difficultyClass": 15
      },
      "resources": [{ "id": "resolve", "maximum": 6, "refresh": "shortRest" }],
      "grants": [{ "ref": "#sentinel-training", "args": { "accuracy": 8, "power": 5 } }, "#first-light", "#armored-sentinel"],
      "actions": ["#dawnward-ward", "#rekindle"],
      "choices": [{
        "id": "weapon-training", "name": "Weapon Training", "default": "standard",
        "options": [
          { "id": "standard", "name": "Standard", "grants": [] },
          { "id": "decisive-blows", "name": "Decisive Blows", "grants": ["#decisive-blows"] }
        ]
      }]
    },
    {
      "kind": "feat", "id": "decisive-blows", "name": "Decisive Blows",
      "modifiers": [{ "kind": "weaponDamageRollTwice" }]
    },
    {
      "kind": "feat", "id": "armored-sentinel", "name": "Defensive Training",
      "modifiers": [{ "kind": "armorClass", "amount": 1, "whenEquipment": { "armor": ["light", "medium", "heavy"] } }]
    },
    {
      "kind": "ability", "id": "sentinel-training", "name": "Sentinel Training",
      "parameters": {
        "accuracy": { "valueType": "integer", "minimum": 0, "maximum": 20 },
        "power": { "valueType": "integer", "minimum": 0, "maximum": 20 }
      },
      "grants": [{ "ref": "#sunedge", "args": { "accuracy": { "param": "accuracy" }, "power": { "param": "power" } } }]
    },
    {
      "kind": "feat", "id": "first-light", "name": "First Light",
      "rules": [{ "id": "ready-the-shield", "event": "encounter.start", "oncePer": "encounter",
        "do": [{ "op": "temporaryHitPoints", "target": "self", "amount": 3 }]
      }]
    },
    {
      "kind": "action", "id": "sunedge", "name": "Sunedge", "activation": "action",
      "delivery": "weapon", "weapon": { "opportunityAttack": true, "type": "melee", "category": "martial", "properties": ["versatile"], "twoHanded": false },
      "parameters": {
        "accuracy": { "valueType": "integer", "minimum": 0, "maximum": 20 },
        "power": { "valueType": "integer", "minimum": 0, "maximum": 20 }
      },
      "target": { "side": "enemy", "rangeFeet": 5, "includeDowned": true },
      "resolution": { "kind": "attack", "attackType": "melee", "attackBonus": { "param": "accuracy" }, "criticalThreshold": 19,
        "onHit": { "op": "damage", "amount": { "kind": "add", "operands": [{ "dice": { "count": 2, "sides": 8 } }, { "param": "power" }] }, "damageType": "slashing" }
      }
    },
    {
      "kind": "action", "id": "dawnward-ward", "name": "Dawnward Ward", "activation": "reaction", "trigger": "damage.before",
      "resource": { "ref": "resolve", "cost": 2 }, "target": { "side": "self" },
      "resolution": { "op": "temporaryHitPoints", "amount": { "dice": { "count": 1, "sides": 8 }, "bonus": 4 } }
    },
    {
      "kind": "action", "id": "rekindle", "name": "Rekindle", "activation": "bonusAction",
      "resource": { "ref": "resolve", "cost": 2 }, "target": { "side": "self" },
      "resolution": { "op": "heal", "amount": { "dice": { "count": 2, "sides": 8 }, "bonus": 4 } }
    }
  ]
}
