Skip to content

Use legal Knight spells in combat and recovery #91

Description

@adrunkhuman

Scope

Use the audited Knight spell set through normal spell execution. Keep capability discovery, policy, casting, and effect verification separate enough to support later vocations without building a speculative all-spell framework.

Each supported spell has an audited semantic descriptor. Roles are healing, support, melee_offense, or ranged_offense; do not infer role from spell words or one observed cast. The live spell engine remains authoritative for learned state, vocation, level, premium, mana, soul, weapon, target, range, line of sight, aggression, cooldown group, and current action constraints. Preserve an explicit mana reserve for higher-priority recovery.

Record cast inputs and outcomes for later calibration, but do not change a spell role or legality from those observations.

Initial policies

  • Healing: compare a legal Knight healing spell with carried recovery and avoid wasteful overheal.
  • Support: use utani hur only for a sufficiently long safe route when its expected duration justifies mana and cooldown cost.
  • Offense: cast only against a valid visible target when normal melee remains valid and the reserve survives.
  • Failure: treat insufficient mana, cooldown, lost target, ineffective result, and unsupported metadata as bounded policy outcomes.

The exact spells and requirements come from #89. Standard 8.60 Thais has no offensive Knight trainer, so the unattended Thais benchmark must not require offensive spell training.

Acceptance

  • Deterministic fixtures cover eligible healing and support spells available from Thais trainers by level 20.
  • The policy consumes audited semantic descriptors and rejects missing or unsupported descriptors.
  • Offensive casting uses a prelearned Whirlwind Throw fixture until intercity travel can reach a standard 8.60 premium trainer.
  • Every cast uses the normal player spell path and respects shared cooldown and action timing.
  • Mana, cooldown, target, health, condition, or combat effects verify the result as applicable.
  • Emergency recovery preempts discretionary support or offense.
  • A failed or unavailable spell falls back without duplicate casting or objective corruption.
  • Telemetry records the need, descriptor, legal candidates, selected method, reserve evidence, cast result, observed outcome, and fallback.

Defer effect calibration, magic-level training, rune planning, field tactics, multi-target optimization, other vocations, and spell combinations.

Related: #38, #46, #54.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew or improved behaviorplayerbotServer-controlled player behavior and infrastructure

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions