Skip to content

spawn_quick_enemy creates a new encounter instead of adding to existing one #48

@Mnehmos

Description

@Mnehmos

Summary

The tool description says spawn_quick_enemy adds enemies to combat. In practice, calling it with encounterId set to an existing encounter ignores that field and creates a brand-new encounter containing only the spawned enemies. The PCs in the original encounter are left without opponents.

Reproduction

{ "action": "spawn_quick_enemy", "encounterId": "encounter-A-...", "creature": "cultist", "count": 3 }

Returns a new encounter id encounter-quick-... with only the cultists. The original encounter-A is unchanged.

Expected

If encounterId is provided, append the spawned enemies as participants to that encounter and return the updated state. If omitted, create a fresh encounter (current behavior).

Acceptance

  • When encounterId is set, spawned enemies join that encounter.
  • Initiative re-rolled for new combatants and inserted into the existing turn order.
  • Test: create encounter with PCs, spawn_quick_enemy on it, assert single encounter with both sides present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions