scroll.server/crates/game-service
WiseDev 73de62794a let the bot borrow the player's deck to split the model question
the account ids check out end to end: the player's avatar carries the
profile account, the bot carries 0-0, LogicBattle::account_ids takes
both from the avatars, and the client's getAccountIndex therefore finds
the player at index 0 and makes them the bottom avatar. so
isOwnedByBottomPlayer is right, and it is right in a way that matters:
the player's units take the blue export names in Character::Character
and the bot's take the red ones. red draws, blue does not.

that leaves two candidates - an empty blue prefix on the row, or a data
reference pointing at the wrong row whose blue prefix happens to be
empty - and one run tells them apart. SCROLL_BOT_MIRRORS_DECK=1 hands
the bot the player's cards; if its knight draws and ours does not, the
rows are fine and the blue branch is the fault.
2026-08-23 15:28:52 +03:00
..
src let the bot borrow the player's deck to split the model question 2026-08-23 15:28:52 +03:00
Cargo.toml move players and accounts into postgres 2026-08-23 08:40:13 +03:00