Whebon / dale-of-merchants

Board Game Arena adaptation of Dale Of Merchants
Other
2 stars 0 forks source link

Effective values after refresh in `blindfold` state #91

Open Whebon opened 1 month ago

Whebon commented 1 month ago

On a refresh in the blindfold state, the effective values are displayed for the "active player". This should instead be the player whose turn it is (which is temporarily not the active player).

In the code snippet below, it can be seen that updating the effective value checks for isCurrentPlayerActive. But it should be something like isCurrentPlayerTurn.

private updateEffectiveValue(card_div: HTMLElement) {
    let value = this.original_value;
    if (card_div.dataset['location'] == 'stock' && DaleCard.page?.isCurrentPlayerActive()) {
        value = this.effective_value;
    }
}