M007 S04: Contingency condition type "spell-completed-against" always returns true — is a stub #11
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
bug
feature-request
in-progress
milestone
ops-task
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/chainbound#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: LOW
File: src/engine/openings.ts:119-121
Problem
The
spell-completed-againstcondition type inevaluateCondition()always returnstrueregardless of context:This means any spell completion by the opponent triggers the branch. There is no logic to check which spell was completed, its severity, or which hand it was on. The condition type exists in the editor but is non-functional — it fires on every opponent completion.
Fix
If this condition type is meant to be specific, add logic to check the actual spell completed (by name, damage threshold, or hand). If it is intentionally a broad catch-all, document it as such in the code.