mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-12-01 03:13:55 +01:00
fix(queue): free "Next block" no longer pops the payment modal
The consolidated entry modal Free Play + Next block path emitted a bare join_queue with no free
intent, so handleGameQueue ran full payment eligibility and (on a mixed paid+free instance) fired
show_payment_options — the old "Choose How to Play" modal appeared on top of an already-queued free
game. Thread the free flag end-to-end, mirroring auto_start{free}: join_queue{free} -> handleJoinQueue
-> handleGameQueue (skips _checkPaymentEligibility when free+freePlayEnabled, tags the queued entry
free) -> queueManager.addPlayer stores free -> startGamesForWaiting/startGameImmediately pass
{ forceFree } into processGameStart, so the block-landing start takes no credit/payment and lands on
the Pleb board. Ranked queued path (plain join_queue) unchanged. Suite 62/435 green.
This commit is contained in:
@@ -1792,7 +1792,7 @@ const SocketHandlers = {
|
||||
$('#ecX').on('click', function () { $('#entryChoiceOverlay').remove(); });
|
||||
$('#ecFree').on('click', function () {
|
||||
if (timing === 'now') begin('⚡ Free game — dropping in...', function () { socket.emit('auto_start', { free: true }); });
|
||||
else begin('🛡️ Free game — queued for the next block...', function () { socket.emit('join_queue'); });
|
||||
else begin('🛡️ Free game — queued for the next block...', function () { socket.emit('join_queue', { free: true }); });
|
||||
});
|
||||
$('#ecRank').on('click', function () {
|
||||
if (!hasCredits) { pay(); return; }
|
||||
|
||||
Reference in New Issue
Block a user