fix: allow .debug bg test starts when CFBG is enabled - #173
Conversation
|
Warning Review limit reached
Next review available in: 57 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
When CFBG is enabled, the core
.debug bgcommand stops working: a GM whotoggles debug mode and queues a single character never gets an invite, because
CheckCrossFactionMatchfully replaces the core start checks and has nohandling for testing mode.
Two things go wrong there. With
CFBG.EvenTeamsenabled the balancing passdrops a lone queuer outright, and even when the player survives selection the
start condition requires both teams to reach the minimum player count, so the
1v0/1v1 starts that core allows under
.debug bgcan never happen.This change checks
sBattlegroundMgr->isTesting()inCheckCrossFactionMatchand, while testing is on, relaxes the balancing diff so a lone player is kept,
then accepts a single non-empty selection pool as a valid start. This mirrors
what core
BattlegroundQueue::CheckNormalMatchdoes in testing mode. Bothchanges are behind the
isTestingcheck, so nothing changes on a live serverwhere
.debug bgis off.How to test:
CFBG.Enable = 1, log in as GM, run.debug bg.queue update and a 1v0 match starts.
.debug bgoff and verify normal matchmaking is unchanged, includingthe EvenTeams behavior.
AI Disclousure
Created with the help of Claude Code