fix!(lua.endpoints): allow rearrange of jokers/consumables during ROUND_EVAL and BLIND_SELECT
@S1M0N38 đang làm issue này rồi.
Từ ngày 1/7/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The rearrange endpoint rejects valid reordering of jokers and consumables during ROUND_EVAL and BLIND_SELECT that the game permits. Verified against vendors/lovely/dump/.
Bug
src/lua/endpoints/rearrange.lua requires_state omits ROUND_EVAL and BLIND_SELECT, so reordering jokers or consumables mid-eval or during blind selection returns INVALID_STATE.
The game allows it: CardArea:set_ranks() (cardarea.lua:245 in the dump) sets states.drag.can = true based purely on area type. Both G.jokers and G.consumeables are created with type = 'joker' (game.lua:2291/2297), so they fall into the else branch with no state guard.
Only jokers and consumables are affected; hand cards are not (no hand is shown in these states, and the hand branch is already correctly restricted to SELECTING_HAND/SMODS_BOOSTER_OPENED).
Fix
Add G.STATES.ROUND_EVAL and G.STATES.BLIND_SELECT to requires_state and to the completion-detection state lists for the jokers/consumables branches (~L215, ~L221). Leave the hand branch unchanged.
Sibling of #202, #203–#206.
- Ngôn ngữ chính
- Python
- Star
- 80
- Fork
- 23
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/balatrobot
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
coder/balatrobot#244 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
coder/balatrobot#243 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/balatrobot#235 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/balatrobot#234 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
coder/balatrobot#233 ·
Tất cả issue của coder/balatrobot
Issue tương tự
-
fuzz fuzz-unconfirmed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
neilsh/stunt-reel#220 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Issue]: use_fp4_cache is accepted but ignored; the launcher always writes FP8 recordsCó thể đã có người làm @0z5a đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: cli priority: p3 size: S type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
finos/open-resource-broker#757 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 6 ngày