Skip to content

Multiple upgrade cost adjusters with different targets may cause an upgrade to appear playable when it isn't #1971

@moyerr

Description

@moyerr

Description

If there are multiple unit-specific cost adjusters for upgrade attach targeting in play, and the targets for the adjustments do not overlap, playing the upgrade may appear as a valid action, even though the cost cannot fully be paid for any single target.

For example, if Guardian of the Whills and any Mandalorian unit are in play. If the user has 3 ready resources, an out-of-aspect Darksaber will appear as playable, even though it would cost 4 on the Mandalorian unit and 5 on Guardian of the Whills.

Test Setup

Notice how The Darksaber appears selectable, even though costs cannot be paid to play it on either unit. The action will be automatically cancelled if the player attempts to play it on either unit, but the engine should really be able to determine that it is not playable at all.

{
    "phase": "action",
    "player1": {
        "resources": 3,
        "hand": [
            "the-darksaber"
        ],
        "groundArena": [
            "guardian-of-the-whills",
            "follower-of-the-way"
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions