Whebon / dale-of-merchants

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

`turnStart` deadlock, stuck on "Move Recorded" #102

Open Whebon opened 1 month ago

Whebon commented 1 month ago

When the player only has a single card remaining to resolve at the start of the turn, the actFullyResolveTechniqueCard will be called programmatically. This may sometimes causes the game to be stuck on:

"Move Recorded"

//enteringstate
case 'turnStart':
    this.mySchedule.setSelectionMode('clickOnTurnStart', undefined, 'dale-wrap-technique');
    const turnStart_unique_card_id = this.mySchedule.getUniqueClickableCardId();
    if (turnStart_unique_card_id) {
    setTimeout((()=>this.onTurnStartTriggerTechnique(turnStart_unique_card_id)).bind(this), 1); //this may cause the deadlock
    }
    break;
Whebon commented 1 month ago

This happens when refreshing the page during turnStart