[GH-ISSUE #8267] Game: a fight setup with an unknown reaction word refuses the whole fight #8210

Closed
opened 2026-10-26 04:03:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8267

Originally assigned to: @kolacheee on GitHub.

When the Game Master's fight setup gives an ability a reaction value the Engine doesn't know, the whole fight is refused. One example is "counterattack" for a duelist's Parry. The error is "Invalid combat AI data: Invalid enum value. Expected 'counterspell' | 'guard', received 'counterattack'". The same happens with an unknown targetScope, or with a flag that isn't true or false.

Expected: the setup drops just that field and keeps the ability, the same way it already pulls an out-of-range number back into bounds.

Originally created by @kolacheee on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8267 Originally assigned to: @kolacheee on GitHub. When the Game Master's fight setup gives an ability a `reaction` value the Engine doesn't know, the whole fight is refused. One example is `"counterattack"` for a duelist's Parry. The error is "Invalid combat AI data: Invalid enum value. Expected 'counterspell' | 'guard', received 'counterattack'". The same happens with an unknown `targetScope`, or with a flag that isn't true or false. Expected: the setup drops just that field and keeps the ability, the same way it already pulls an out-of-range number back into bounds.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8210
No description provided.