Skip to content

collectRuleMentionedObjects bug? #1140

@increpare

Description

@increpare

ai sez: "Bug: collectRuleMentionedObjects only inspects rule LHS/RHS cells, not win conditions. In semantic and mechanics modes (where both collapseEquivalentObjects and includeWinConditions are true), objects referenced only in win conditions are treated as inert — causing two problems: (1) objects on retained layers get merged together (e.g., All ObjA on ObjB becomes All X on X), and (2) objects on dropped layers produce dangling references in win conditions that don't exist in any output collision layer. The fix is to also collect objects from canonical.winConditions into the mentioned set when includeWinConditions is true."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions